在部署rails应用程序之前,我需要做些什么

在部署rails应用程序之前,我需要做些什么

问题描述:

编辑

在部署rails应用程序之前,需要做些什么小事?

What small things which are too easy to overlook do I need to do before deploying a rails application?

我已经设置了,因此应该安排在部署过程中。在这个问题中,我主要关心在线配置选项和类似的,可以完成,但是在开发周期中经常被忽略,因为在部署之前它们没有任何区别。

I have set up another question for any task that takes more than a minute or two, and so ought to be scheduled into a deployment process. In this question I'm mostly concerned with on-line config options and similar, that can be done, but are often left out in during the development cycle because they don't make any difference until deployment


  • 冻结您使用的宝石耙宝石:unpack

  • 更改 config / environment.rb中的秘密

  • 过滤敏感信息,如密码: app / controllers / application.rb
    filter_parameter_logging:password,:password_confirmation

    • Freeze the gems you are using rake gems:unpack
    • Change the secret in config/environment.rb
    • Filter sensitive informtion like passwords: in app/controllers/application.rb filter_parameter_logging :password, :password_confirmation