Skip to content

Instantly share code, notes, and snippets.

@qqpann
Last active January 18, 2018 11:49
Show Gist options
  • Save qqpann/0e0bead14ef2d9db1c7b68933047ba42 to your computer and use it in GitHub Desktop.
Save qqpann/0e0bead14ef2d9db1c7b68933047ba42 to your computer and use it in GitHub Desktop.
Rails5をproduction(本番環境)で起動する時に嵌ったこと ref: https://qiita.com/qiugits/items/7cd01f4b5cff4a31e053
$ export SECRET_KEY_BASE=`bundle exec rake secret`
$ export -p | grep SECRET_KEY_BASE
declare -x SECRET_KEY_BASE="Could not locate Gemfile or .bundle/ directory"
config.assets.compile = true
development:
secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
test:
secret_key_base: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment