Skip to content

Commit ee0c30c

Browse files
Merge pull request #503 from CodeNow/eru-logging
eru logging options
2 parents efff599 + 3c3a23b commit ee0c30c

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

ansible/group_vars/alpha-eru.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,20 @@ container_envs: >-
2121
-e DOMAIN={{ eru_subdomain }}.{{ domain }}
2222
-e GITHUB_CLIENT_ID={{ eru_github_id }}
2323
-e GITHUB_CLIENT_SECRET={{ eru_github_secret }}
24-
-e INTERCOM_APP_ID={{ eru_intercom_id }}
2524
-e INTERCOM_API_KEY={{ eru_intercom_key }}
25+
-e INTERCOM_APP_ID={{ eru_intercom_id }}
26+
-e LOG_ENVIRONMENT={{ node_env }}
27+
-e LOG_LEVEL=trace
2628
-e MONGODB_DATABASE={{ eru_mongodb_database }}
27-
-e MONGODB_PASSWORD={{ eru_mongodb_password }}
2829
-e MONGODB_HOSTS={{ mongo_hosts }}
30+
-e MONGODB_PASSWORD={{ eru_mongodb_password }}
2931
-e MONGODB_REPLSET={{ eru_mongodb_replset }}
3032
-e MONGODB_USERNAME={{ eru_mongodb_username }}
3133
-e NODE_ENV=production
3234
-e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
35+
-e RABBITMQ_PASSWORD={{ rabbit_password }}
3336
-e RABBITMQ_PORT={{ rabbit_port }}
3437
-e RABBITMQ_USERNAME={{ rabbit_username }}
35-
-e RABBITMQ_PASSWORD={{ rabbit_password }}
3638
-e REDIS_HOSTNAME={{ redis_host_address }}
3739
-e REDIS_PORT={{ redis_port }}
3840
-e RUNNABLE_DOMAIN={{ domain }}
@@ -45,4 +47,4 @@ container_run_opts: >
4547
-v /var/log:/var/log:rw
4648
{{ container_envs }}
4749
48-
container_run_args: supervisord --configuration supervisord.conf --nodaemon
50+
container_run_args: bash -c "supervisord --configuration supervisord.conf && sleep 10 && tail -n 100 -qf /tmp/*std*.log /tmp/supervisord.log"

0 commit comments

Comments
 (0)