嗯..我想要做的事情完全一樣,在這篇文章Serving interactive bokeh figure on heroku 這似乎是一個重複,除非我無法讓它工作。Heroku運行散景服務器--H12超時
也就是說,運行背景虛化的movies example(github)。
這裏是我的requirements.txt:
dj-database-url==0.4.1
Django==1.9.7
gunicorn==19.6.0
psycopg2==2.6.2
whitenoise==2.0.6
requests==2.9.1
bokeh==0.12.2
appdirs==1.4.3
pandas==0.18.0
six >=1.5.2
PyYAML >=3.10
python-dateutil >=2.1
Jinja2 >=2.7
numpy >=1.7.1
tornado >=4.3
這裏是我的Procfile,其中引用了背景虛化/例子/應用/電影目錄拷貝movies_local
,位於應用程序目錄:
web: bokeh serve --port=$PORT --host=sitename.herokuapp.com --host=localhost:5000 --address=0.0.0.0 --use-xheaders movies_local/main.py
它運行正常,當我運行heroku local
但超時,當我嘗試部署它。我輕輕地編輯日誌:
2017-05:00 heroku[web.1]: Starting process with command `bokeh serve --port=19727 --host=sitename.herokuapp.com --host=localhost:5000 --address=0.0.0.0 --use-xheaders movies_local/main.py`
2017-05:00 heroku[web.1]: State changed from starting to up
2017-05:00 app[web.1]: 2017-05-04 21:23:40,315 Starting Bokeh server version 0.12.2
2017-05:00 app[web.1]: 2017-05-04 21:23:40,341 Starting Bokeh server on port 19727 address 0.0.0.0 with applications at paths ['/main']
2017-05:00 app[web.1]: 2017-05-04 21:23:40,342 Starting Bokeh server with process id: 4
2017-05:00 heroku[router]: at=info method=GET path="/" host=sitename.herokuapp.com request_id=3d86a460-cfa0-4d22-bb0e-2b984527fa8b fwd="47.16.208.6" dyno=web.1 connect=1ms service=3ms status=302 bytes=164 protocol=https
2017-05:00 app[web.1]: 2017-05-04 21:23:43,099 302 GET/(47.16.208.6) 1.03ms
2017-05:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/main" host=sitename.herokuapp.com request_id=35ca7816-6956-44b9-9d97-b8b27c273244 fwd="47.16.208.6" dyno=web.1 connect=2ms service=30000ms status=503 bytes=0 protocol=https
很抱歉,但我非常新整體的Heroku &網頁內容。非常感謝你的任何見解。
我有完全一樣的問題。我問過Heroku的支持,如果他們回覆我,我會告訴你。 – EddyTheB