R
R
Ruslan Galiev2015-04-09 14:25:02
Apache HTTP Server
Ruslan Galiev, 2015-04-09 14:25:02

Rails how to correctly set environment variables when deploying an application?

Hello
In the config/secret.yml configuration file, secret_key_base takes its value from an environment variable.

production:
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

Please tell me the correct and simple way to export the environment variable ENV["SECRET_KEY_BASE"] to the production server.
I use capistrano 3 to deploy the application. For now, I tend to choose the capistrano-secrets-yml gem , but I think there is an easier option.
UPD. Already raised Debian 7.8 , Apache + Passenger , MySQL etc. the whole environment is prepared. and the project is deploying normally. This is not the question.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
OnYourLips, 2015-04-09
@HerMajor

https://www.phusionpassenger.com/documentation/Use...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question