Create config/initializers/secret_token.rb in Dockerfile
Set the secret_token to ENV['SECRET_KEY_BASE'] in that file.
This commit is contained in:
parent
2c180cc9e8
commit
42b789d381
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ RUN buildDeps='libmagic-dev' && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
bundle install --deployment --without development test && \
|
bundle install --deployment --without development test && \
|
||||||
apt-get purge -y --auto-remove $buildDeps && \
|
apt-get purge -y --auto-remove $buildDeps && \
|
||||||
|
echo "Foodsoft::Application.config.secret_token = ENV['SECRET_KEY_BASE']" > config/initializers/secret_token.rb && \
|
||||||
mkdir -p log && \
|
mkdir -p log && \
|
||||||
ln -sfn /dev/stdout log/production.log && \
|
ln -sfn /dev/stdout log/production.log && \
|
||||||
bundle exec whenever --update-crontab
|
bundle exec whenever --update-crontab
|
||||||
|
|
Loading…
Reference in a new issue