我是Heroku的新手。你如何在Heroku中隐藏你的API密钥?我知道从文档我可以使用配置增值服务使用Rails在Heroku中隐藏Google API密钥
https://devcenter.heroku.com/articles/config-vars
但是,我如何从JavaScript加载配置? 我想要做的就是这样的事情
https://developers.google.com/maps/documentation/javascript/tutorial
我使用Ruby on Rails的我的应用程序。
[Rails的4.1推秘密的Heroku(HTTP的可能重复:// stackoverflow.com/questions/21894761/rails-4-1-pushing-secrets-to-heroku) –