Skip to content

Commit

Permalink
prepared dockerfile and docker-compose for production deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jschnapper committed Dec 1, 2021
1 parent a8e7e59 commit a6436c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@ export RAILS_ENV=production
export NODE_ENV=production

# TODO: Generate a secret
# 1. generate `rails secret`
# 2. add to the env variables SECRET_KEY_BASE and RAILS_MASTER_KEY
# 3. run `rails credentials:edit --environment production` and enter the secret under `secret_key_base`
# export SECRET_KEY_BASE=<SECRET KEY>
# export RAILS_MASTER_KEY=<SECRET KEY>

# TODO: choose one restart policy
Expand All @@ -33,4 +29,8 @@ export NODE_ENV=production

# TODO: Add postgres user and password
# export POSTGRES_USER=<POSTGRES USER>
# export POSTGRES_PASSWORD=<POSTGRES PASSWORD>
# export POSTGRES_PASSWORD=<POSTGRES PASSWORD>

# serve static files since precompiled
# export RAILS_SERVE_STATIC_FILES=true
# export RAILS_LOG_TO_STDOUT=true

0 comments on commit a6436c9

Please sign in to comment.