简体   繁体   English

如何在Heroku中编辑不在Git中的配置文件?

[英]How to edit a config file on Heroku that's not in Git?

I have a Rails app with configuration options that are set differently for different versions of the app. 我有一个Rails应用程序,其配置选项针对不同版本的应用程序进行了不同的设置。 As mentioned in Where to store site specific information like site name, admin email, etc? 如在何处存储特定于站点的信息(例如站点名称,管理员电子邮件等)中所述? I'm storing it in a file called app_config.yml . 我将其存储在名为app_config.yml的文件中。 I want to remove this file from git so it can be custom-set for each site. 我想从git中删除此文件,以便可以为每个站点自定义设置。 How can I edit the file on heroku if it's not included with git? 如果git中未包含该文件,如何在heroku上进行编辑?

(I could switch to use Heroku config variables, but that seemed to be more for passwords and the like.) (我可以切换为使用Heroku配置变量,但这似乎更多用于密码等。)

Take a look at this link from Heroku. 看看来自Heroku的此链接。 It should provide some help with what you are attempting to do. 它应该为您尝试做的事情提供一些帮助。 It explains how you may set some configuration variables. 它说明了如何设置一些配置变量。

https://devcenter.heroku.com/articles/config-vars https://devcenter.heroku.com/articles/config-vars

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM