开发者

Heroku can't find facebook.yml file; what is going on?

开发者 https://www.devze.com 2023-02-14 01:09 出处:网络
I am deploying an app that works locally to h开发者_如何学Ceroku. My heroku logs produce the following error:

I am deploying an app that works locally to h开发者_如何学Ceroku. My heroku logs produce the following error:

/usr/ruby1.9.2/lib/ruby/1.9.1/syck.rb:145:in `initialize': No such file or directory - /app/2c325e9f-adb9-420e-b7d8-a80f8aa4c4e6/home/config/facebook.yml

My facebook.yml file is in the /config directory and is formatted as such:

development:

    app_id

    secret_key


test:

    app_id

    secret_key

production:

    app_id

    secret_key


My guess is that you forgot to...

git add facebook.yml
git commit -m 'new file' .

prior to

git push heroku master


Althouh DigitalRoss answer works may not always be a best practice.

Adding yaml files to repository you put sensitive information into your git account
leaving security issues (eg. if code is shared in github or else).

Here's what heroku suggest.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号