Skip to content

Commit

Permalink
Added env variable to hopefully pass functional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry Mollman committed Oct 11, 2016
1 parent bfa69b9 commit 643c43b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions configs/.env.development
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ ASSERT_HTTPS=false
AWS_ACCESS_KEY_ID=AKIAJXF6CNCWBWNX7JZQ
AWS_SECRET_ACCESS_KEY=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
CONTAINER_STOP_LIMIT=10
DB_CONNECTION_TIMEOUT=10000
DOCKER_IMAGE_BUILDER_CACHE=/git-cache
DOMAIN=localhost:3001
FULL_API_DOMAIN=http://localhost:3030
Expand Down
1 change: 1 addition & 0 deletions configs/.env.production-delta
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CONTAINER_STOP_LIMIT=10
DB_CONNECTION_TIMEOUT=10000
DOCKER_IMAGE_BUILDER_CACHE=/git-cache
DOCKER_IMAGE_BUILDER_LAYER_CACHE=/layer-cache
DOMAIN=runnable.io
Expand Down
1 change: 1 addition & 0 deletions configs/.env.production-epsilon
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ALLOW_ALL_CORS=true
BUNYAN_LOG_USE_SRC=true
CONTAINER_STOP_LIMIT=10
DB_CONNECTION_TIMEOUT=10000
DOCKER_IMAGE_BUILDER_CACHE=/git-cache
DOCKER_IMAGE_BUILDER_LAYER_CACHE=/layer-cache
DOMAIN=runnable-beta.com
Expand Down
1 change: 1 addition & 0 deletions configs/.env.production-gamma
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
ALLOW_ALL_CORS=true
BUNYAN_LOG_USE_SRC=true
CONTAINER_STOP_LIMIT=10
DB_CONNECTION_TIMEOUT=10000
DOCKER_IMAGE_BUILDER_CACHE=/git-cache
DOCKER_IMAGE_BUILDER_LAYER_CACHE=/layer-cache
DOMAIN=runnable-gamma.com
Expand Down
1 change: 1 addition & 0 deletions configs/.env.staging
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ AWS_ACCESS_KEY_ID=AKIAJXF6CNCWBWNX7JZQ
AWS_SECRET_ACCESS_KEY=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
BUNYAN_BATCH_LOG_COUNT=5
DATADOG_HOST=datadog-staging-codenow.runnableapp.com
DB_CONNECTION_TIMEOUT=10000
DEBUG=runnable-api:docker*,api:worker*,hermes*
DOCKER_IMAGE_BUILDER_CACHE=/git-cache
DOCKER_IMAGE_BUILDER_LAYER_CACHE=/layer-cache
Expand Down
1 change: 1 addition & 0 deletions configs/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ BUNYAN_LOG_USE_SRC=true
CONTAINER_STOP_LIMIT=10
COOKIE_SECRET=\$up3r,$3<r3t
CREAM_HOST=localhost:9879
DB_CONNECTION_TIMEOUT=60000
DEFAULT_PAGE_LIMIT=25
DOMAIN=runnable.io
FULL_API_DOMAIN=http://localhost:3031
Expand Down
2 changes: 1 addition & 1 deletion lib/models/mongo/mongoose-control.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ mongooseControl._exitIfFailedToReconnect = function () {
log.fatal({message: 'Exiting nodejs process due to mongodb connection failure'})
process.exit(1)
}
}, 10000)
}, process.env.DB_CONNECTION_TIMEOUT)
}

0 comments on commit 643c43b

Please sign in to comment.