在部署rails应用程序之前,我需要做些什么 [英] What little things do I need to do before deploying a rails application

查看:96
本文介绍了在部署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
    • 这篇关于在部署rails应用程序之前,我需要做些什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆