Skip to content

Commit

Permalink
feat(config): standardise on SG_ENV
Browse files Browse the repository at this point in the history
to indicate if the service is running in production mode
  • Loading branch information
stakach authored Jun 19, 2020
1 parent 2f66d3f commit 1199e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require "./placeos-frontends"
# Server required after application controllers
require "action-controller/server"

PROD = ENV["ENV"]? == "PROD"
PROD = ENV["SG_ENV"]? == "production"

# Add handlers that should run before your application
ActionController::Server.before(
Expand Down

0 comments on commit 1199e8e

Please sign in to comment.