when you have secret key in your project, how can pushing to GitHub be possible?

前端 未结 4 737
南方客
南方客 2020-12-01 02:56

I am trying to push a brand new, empty Rail 3.0.4 project to GitHub, but just realize that the cookie session store has a secret key:

In config/initializers/se

4条回答
  •  一个人的身影
    2020-12-01 03:46

    You could risk trusting Github's security/privacy if it is a private repository .. or:
    - Pull the data from a configuration file on the server. For example, if you use Capistrano for deployment, you can add a step that copies the configuration file from somewhere on the server.
    - Use an environment variable.

提交回复
热议问题