Merge pull request #1200 from alphagov/paas_production

Paas production
This commit is contained in:
Andras Ferencz-Szabo
2017-03-21 15:29:32 +00:00
committed by GitHub
2 changed files with 5 additions and 9 deletions

View File

@@ -139,5 +139,6 @@ configs = {
'preview': Preview, 'preview': Preview,
'staging': Staging, 'staging': Staging,
'live': Live, 'live': Live,
'production': Live,
'sandbox': Sandbox 'sandbox': Sandbox
} }

View File

@@ -25,15 +25,10 @@ function configure_aws_logs {
[general] [general]
state_file = /home/vcap/logs/awslogs-state state_file = /home/vcap/logs/awslogs-state
[/home/vcap/logs/app-stdout.log] [/home/vcap/logs/app.log]
file = /home/vcap/logs/app-stdout.log* file = /home/vcap/logs/app.log*
log_group_name = paas-${CW_APP_NAME}-application log_group_name = paas-${CW_APP_NAME}-application
log_stream_name = {hostname}-stdout log_stream_name = {hostname}
[/home/vcap/logs/app-stderr.log]
file = /home/vcap/logs/app-stderr.log*
log_group_name = paas-${CW_APP_NAME}-application
log_stream_name = {hostname}-stderr
EOF EOF
} }
@@ -58,7 +53,7 @@ function on_exit {
} }
function start_appplication { function start_appplication {
exec "$@" 2>/home/vcap/logs/app-stderr.log | while read line; do echo $line; echo $line >> /home/vcap/logs/app-stdout.log.`date +%Y-%m-%d`; done & exec "$@" 2>&1 | while read line; do echo $line; echo $line >> /home/vcap/logs/app.log.`date +%Y-%m-%d`; done &
LOGGER_PID=$! LOGGER_PID=$!
APP_PID=`jobs -p` APP_PID=`jobs -p`
echo "Logger process pid: ${LOGGER_PID}" echo "Logger process pid: ${LOGGER_PID}"