mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02: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:
@@ -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
|
||||||
Reference in New Issue
Block a user