很难正确设置我的本地设置。尝试运行工头并遇到问题:
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
谢谢