ローカルセットアップを正しく取得するのに苦労しています。フォアマンを実行しようとして問題が発生する:
web: bundle exec thin -R config.ru start -p $PORT -e ${RACK_ENV:-development}
RACK_ENV:"FACEBOOK_APP_ID=275479742529226"
RACK_ENV:"FACEBOOK_SECRET=xxx"
「フォアマンスタート」を実行
15:21:21 RACK_ENV.1 | process terminated
15:21:21 web.1 | started with pid 23406
15:21:21 system | sending SIGTERM to all processes
15:21:21 RACK_ENV.1 | started with pid 23407
15:21:21 system | sending SIGTERM to pid 23406
15:21:21 RACK_ENV.1 | started with pid 23408
15:21:21 RACK_ENV.1 | /Users/mc/.rvm/gems/ruby- 1.9.2-p290/gems/foreman-
0.41.0/bin/foreman-runner: line 36: exec: "FACEBOOK_APP_ID=275479742529226": not found
どうやら私は私のfbキーを環境に対して完全に間違って設定しています..誰かが助けてくれるなら。ルートにも.envファイルを設定してみました。
FACEBOOK_APP_ID = 964173273189 FACEBOOK_SECRET = xxx
procfileからすべてを削除し(とにかく間違っていると思います)、フォアマンを実行します。デフォルトでルートの.envファイルを取得するべきではありませんか?これは運を証明していません。
5:44:20 web.1 | started with pid 23705
15:44:24 web.1 | missing env vars: please set FACEBOOK_APP_ID and FACEBOOK_SECRET
with your app credentials
15:44:24 web.1 | process terminated
15:44:24 system | sending SIGTERM to all processes
ありがとう