From a6436c9629168c57e4f66317df4d7af94ed41049 Mon Sep 17 00:00:00 2001 From: jschnapper Date: Tue, 30 Nov 2021 23:59:23 -0800 Subject: [PATCH] prepared dockerfile and docker-compose for production deployment --- .env.example | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index 57f8896..d70f118 100644 --- a/.env.example +++ b/.env.example @@ -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= # export RAILS_MASTER_KEY= # TODO: choose one restart policy @@ -33,4 +29,8 @@ export NODE_ENV=production # TODO: Add postgres user and password # export POSTGRES_USER= -# export POSTGRES_PASSWORD= \ No newline at end of file +# export POSTGRES_PASSWORD= + +# serve static files since precompiled +# export RAILS_SERVE_STATIC_FILES=true +# export RAILS_LOG_TO_STDOUT=true \ No newline at end of file