Move update-prod-static.log to var/log.

This commit is contained in:
Taranjeet Singh
2016-07-19 19:22:15 +05:30
committed by Tim Abbott
parent 9b31f0a67a
commit 44d23975ed
3 changed files with 3 additions and 3 deletions

1
.gitignore vendored
View File

@@ -2,7 +2,6 @@
*~
/all_messages_log.*
/event_log/*
/update-prod-static.log
frontend_tests/casper_tests/server.log
frontend_tests/casper_lib/test_credentials.js
/prod-static

View File

@@ -74,7 +74,7 @@ set -x
./tools/update-prod-static
echo "$GITID" > build_id
echo "$version" > version
mv update-prod-static.log ..
mv var/log/update-prod-static.log ../
rm -f zproject/dev-secrets.conf

View File

@@ -24,7 +24,8 @@ prev_deploy = options.prev_deploy
os.chdir(settings.DEPLOY_ROOT)
# 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
subprocess.check_call(['npm', 'install'], stdout=fp, stderr=fp);