Skip to content

Commit

Permalink
Add app logging and increase gunicorn timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dakotabenjamin committed Aug 9, 2019
1 parent b4f9fc7 commit 2086308
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ RUN \
pip install gunicorn; \
pip install -r requirements.txt

CMD gunicorn --bind 0.0.0.0:5000 'ml_enabler:create_app()'
CMD gunicorn --bind 0.0.0.0:5000 --timeout 120 'ml_enabler:create_app()'
12 changes: 12 additions & 0 deletions devops/ml-enabler.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,20 @@ const Resources = {
{
Name: "FLASK_APP",
Value: "ml_enabler"
},
{
Name: "ECS_LOG_LEVEL",
Value: "debug"
}
],
LogConfiguration: {
LogDriver: "awslogs",
Options: {
"awslogs-group": cf.join("-", ["awslogs", cf.stackName]),
"awslogs-region": "us-east-1",
"awslogs-stream-prefix": cf.join("-", ["awslogs", cf.stackName])
}
},
Essential: true
},
{
Expand Down

0 comments on commit 2086308

Please sign in to comment.