git tree + Heroku + Github中的密码 [英] Passwords in git tree + Heroku + Github

查看:44
本文介绍了git tree + Heroku + Github中的密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Sinatra中完成了一个非常基本的应用程序 我已经在Heroku(http://frasesbarrio.heroku.com)

I have a very basic application done in Sinatra I have deployed it in Heroku (http://frasesbarrio.heroku.com)

在Facebook中有一个共享按钮,实际上它可以用作Facebook应用程序.对于Facebook身份验证,我的应用程序有其自己的应用程序ID和应用程序密钥(现在它们是源主文件中的两个常量)

There is a button for sharing in Facebook and in fact it can be used as a Facebook application. For Facebook authentification, my application has its own app id and app secret (right now they are two constants in the main file of the source)

我也想在Github中共享我的代码,以供大家欣赏.

I also want to share my code in Github for everyone to enjoy.

我该如何以可维护的方式将带有应用程序ID和密码的代码连同发送给Heroku,并将其发送给Github? (我的意思是,我将不时地更改应用程序,每次更改后都部署并发送到Github)

How can I send the code with the app id and secret to Heroku and without them to Github in a maintainable fashion? (I mean that I will keep changing the app now and then, deploying and sending to Github after every change)

推荐答案

查看配置vars -它可以商店ID/秘密与应用代码分开存储.

Check out Config vars - it can store id/secret separate from app code.

这篇关于git tree + Heroku + Github中的密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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