Skip to content

Commit aa78755

Browse files
author
Andrew Martlew
committed
- Added environment env var
1 parent 68465db commit aa78755

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ After few seconds, open `http://<host>` to see the result.
2323

2424
The following environment variables can be used to configure the container:
2525

26-
AWS_S3_OBJECT If set, should be an S3 location of a zip file named app.zip
26+
APP_ENVIRONMENT The application environment (e.g. production, development..).
27+
AWS_S3_OBJECT If set, should be an S3 location of a zip file
2728
containing the code to deploy to this instance.
2829
AWS_DEFAULT_REGION The region of the S3 bucket.
2930
AWS_ACCESS_KEY_ID The AWS access key ID for accessing the S3 bucket.

nginx.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ if [ ! -f /tmp/supervisord-nginx.log ] ; then
1313
fi
1414

1515
cd /var/app/current
16-
if [ -f .kubernetes/bootstrap.sh ] ; then
17-
source .kubernetes/bootstrap.sh
16+
17+
if [ -f .docker/${APP_ENVIRONMENT}/bootstrap.sh ] ; then
18+
source .docker/${APP_ENVIRONMENT}/bootstrap.sh
1819
fi
1920

2021
touch /tmp/supervisord-nginx.log

0 commit comments

Comments
 (0)