正如標題所示,我正在用heroku設置一個Symphony項目。它在我的Mac OSX筆記本電腦上。我按照the directions here進行設置。我安裝了所有東西,將我的項目推送到heroku,測試它並在網絡上運行。在Heroku中設置Symphony開發環境
現在我試圖設置本地開發環境。我希望能像往常一樣簡單地使用heroku local
來啓動開發者服務器。我安裝了heroku php buildpack,我創建了這些內容的Procfile
:
web: $(composer config bin-dir)/heroku-php-apache2 web/
的composer config bin-dir
命令返回vendor/bin
,然後我可以看到heroku-php-apache2
文件在那裏。一切看起來不錯。
當我運行heroku local
我得到這個錯誤:
[WARN] No ENV file found
15:48:49 web.1 | This program requires Apache 2.4.10 or newer with mod_proxy and mod_proxy_fcgi enabled; check your 'httpd' command.
15:48:49 web.1 Exited with exit code 1
所以我檢查了httpd -v
和我有:在/etc/apache2/httpd.conf
文件
Server version: Apache/2.4.27 (Unix)
Server built: Oct 3 2017 10:26:24
我剛啓用(取消註釋)mod_proxy
和mod_proxy_fcgi
和重新啓動機器,但仍然看到相同的錯誤。我開始認爲這是我的Procfile或其他問題。
任何幫助,非常感謝。