mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-14 20:40:17 -05:00
Merge pull request #18145 from overleaf/msm-ce-history-scripts
[CE] Add history utility scripts (flush/resync) GitOrigin-RevId: 3f46609c279bef70f1ee6e63f74648f1c2b99a97
This commit is contained in:
parent
cdd79e8ec0
commit
cee678591f
3 changed files with 23 additions and 0 deletions
|
@ -80,6 +80,13 @@ COPY server-ce/config/custom-environment-variables.json /overleaf/services/histo
|
||||||
ADD server-ce/bin/grunt /usr/local/bin/grunt
|
ADD server-ce/bin/grunt /usr/local/bin/grunt
|
||||||
RUN chmod +x /usr/local/bin/grunt
|
RUN chmod +x /usr/local/bin/grunt
|
||||||
|
|
||||||
|
# Copy history helper scripts
|
||||||
|
# ---------------------------
|
||||||
|
ADD server-ce/bin/flush-history-queues /overleaf/bin/flush-history-queues
|
||||||
|
RUN chmod +x /overleaf/bin/flush-history-queues
|
||||||
|
ADD server-ce/bin/force-history-resyncs /overleaf/bin/force-history-resyncs
|
||||||
|
RUN chmod +x /overleaf/bin/force-history-resyncs
|
||||||
|
|
||||||
# File that controls open|closed status of the site
|
# File that controls open|closed status of the site
|
||||||
# -------------------------------------------------
|
# -------------------------------------------------
|
||||||
ENV SITE_MAINTENANCE_FILE "/etc/overleaf/site_status"
|
ENV SITE_MAINTENANCE_FILE "/etc/overleaf/site_status"
|
||||||
|
|
8
server-ce/bin/flush-history-queues
Executable file
8
server-ce/bin/flush-history-queues
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source /etc/container_environment.sh
|
||||||
|
source /etc/overleaf/env.sh
|
||||||
|
cd /overleaf/services/project-history
|
||||||
|
node scripts/flush_all.js 100000
|
8
server-ce/bin/force-history-resyncs
Executable file
8
server-ce/bin/force-history-resyncs
Executable file
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
source /etc/container_environment.sh
|
||||||
|
source /etc/overleaf/env.sh
|
||||||
|
cd /overleaf/services/project-history
|
||||||
|
node scripts/force_resync.js 1000 force
|
Loading…
Reference in a new issue