mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
Move update-prod-static.log to var/log.
This commit is contained in:
committed by
Tim Abbott
parent
9b31f0a67a
commit
44d23975ed
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,7 +2,6 @@
|
|||||||
*~
|
*~
|
||||||
/all_messages_log.*
|
/all_messages_log.*
|
||||||
/event_log/*
|
/event_log/*
|
||||||
/update-prod-static.log
|
|
||||||
frontend_tests/casper_tests/server.log
|
frontend_tests/casper_tests/server.log
|
||||||
frontend_tests/casper_lib/test_credentials.js
|
frontend_tests/casper_lib/test_credentials.js
|
||||||
/prod-static
|
/prod-static
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ set -x
|
|||||||
./tools/update-prod-static
|
./tools/update-prod-static
|
||||||
echo "$GITID" > build_id
|
echo "$GITID" > build_id
|
||||||
echo "$version" > version
|
echo "$version" > version
|
||||||
mv update-prod-static.log ..
|
mv var/log/update-prod-static.log ../
|
||||||
|
|
||||||
rm -f zproject/dev-secrets.conf
|
rm -f zproject/dev-secrets.conf
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ prev_deploy = options.prev_deploy
|
|||||||
os.chdir(settings.DEPLOY_ROOT)
|
os.chdir(settings.DEPLOY_ROOT)
|
||||||
|
|
||||||
# Redirect child processes' output to a log file (most recent run only).
|
# Redirect child processes' output to a log file (most recent run only).
|
||||||
fp = open('update-prod-static.log', 'w')
|
subprocess.check_call(["mkdir", "-p", "var/log"])
|
||||||
|
fp = open('var/log/update-prod-static.log', 'w')
|
||||||
|
|
||||||
# Install node packages
|
# Install node packages
|
||||||
subprocess.check_call(['npm', 'install'], stdout=fp, stderr=fp);
|
subprocess.check_call(['npm', 'install'], stdout=fp, stderr=fp);
|
||||||
|
|||||||
Reference in New Issue
Block a user