Skip to content
This repository was archived by the owner on Mar 22, 2021. It is now read-only.

Commit ed06646

Browse files
committed
changed secrete key base approach due to errors
1 parent ff1efd4 commit ed06646

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

config/credentials.yml.enc

Lines changed: 0 additions & 1 deletion
This file was deleted.

config/secrets.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
production:
2+
secret_key_base: <%= ENV.fetch("SECRET_KEY_BASE") %>

create_env.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
echo "" >> ./.env
2-
echo "DOCS_RAILS_MASTER_KEY=$DOCS_RAILS_MASTER_KEY" >> ./.env
2+
echo "SECRET_KEY_BASE=$SECRET_KEY_BASE" >> ./.env

docker-compose.production.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
environment:
2222
RAILS_ENV: "production"
2323
POSTGRES_DB: "production"
24-
DOCS_RAILS_MASTER_KEY: $RAILS_MASTER_KEY
24+
SECRET_KEY_BASE: $SECRET_KEY_BASE
2525
env_file:
2626
- ./.env
2727
command: "bundle exec rails server --binding 0.0.0.0 --port 3000"

0 commit comments

Comments
 (0)