Skip to content

Commit a6436c9

Browse files
committed
prepared dockerfile and docker-compose for production deployment
1 parent a8e7e59 commit a6436c9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.env.example

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@ export RAILS_ENV=production
33
export NODE_ENV=production
44

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

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

3430
# TODO: Add postgres user and password
3531
# export POSTGRES_USER=<POSTGRES USER>
36-
# export POSTGRES_PASSWORD=<POSTGRES PASSWORD>
32+
# export POSTGRES_PASSWORD=<POSTGRES PASSWORD>
33+
34+
# serve static files since precompiled
35+
# export RAILS_SERVE_STATIC_FILES=true
36+
# export RAILS_LOG_TO_STDOUT=true

0 commit comments

Comments
 (0)