Hiding my sensitive information (e.g. password) from github

后端 未结 3 2119
礼貌的吻别
礼貌的吻别 2020-12-09 11:21

I just set up Devise (rails authentication plugin) to send a confirmation email upon sign up. This involved my putting the following into my environment.rb file:

<         


        
3条回答
  •  萌比男神i
    2020-12-09 11:48

    The standard is to put your configuration settings in one YAML file which isn't included in your repo.

    Then you simply get the data from it.

    Check Railscast "#85 YAML Configuration File" to see it in action.

提交回复
热议问题