mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #826 from overleaf/jpa-fix-contacts-logging
[misc] fix contacts logging
This commit is contained in:
commit
8647127844
2 changed files with 8 additions and 1 deletions
7
init_scripts/10_delete_old_logs.sh
Executable file
7
init_scripts/10_delete_old_logs.sh
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
# Up to version 2.5.0 the logs of the contacts service were written into a
|
||||
# file that was not picked up by logrotate.
|
||||
# The service is stable and we can safely discard any logs.
|
||||
rm -vf /var/log/sharelatex/contacts
|
|
@ -7,4 +7,4 @@ if [ "$DEBUG_NODE" == "true" ]; then
|
|||
NODE_PARAMS="--inspect=0.0.0.0:30360"
|
||||
fi
|
||||
|
||||
exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /var/www/sharelatex/contacts/app.js >> /var/log/sharelatex/contacts 2>&1
|
||||
exec /sbin/setuser www-data /usr/bin/node $NODE_PARAMS /var/www/sharelatex/contacts/app.js >> /var/log/sharelatex/contacts.log 2>&1
|
||||
|
|
Loading…
Reference in a new issue