just started on using web.py and heroku, so...
I have this simple app that I want to upload to heroku and I have followed the instruction from http://joshuaoiknine.com/post/47196802362/publishing-for-the-web-py-python-framework-to-heroku
This is my Procfile:
web: python code.py $PATH
But after I uploaded it to heroku, it gives me the application error. The heroku log shows me this:
2013-08-08T03:27:44.956675+00:00 heroku[web.1]: Starting process with command `python code.py /usr/local/bin:/usr/bin:/bin`
2013-08-08T03:27:45.673358+00:00 app[web.1]: Traceback (most recent call last):
2013-08-08T03:27:45.673358+00:00 app[web.1]: File "code.py", line 52, in <module>
2013-08-08T03:27:45.673358+00:00 app[web.1]: app.run()
2013-08-08T03:27:45.673358+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/web/application.py", line 313, in run
2013-08-08T03:27:45.673358+00:00 app[web.1]: return wsgi.runwsgi(self.wsgifunc(*middleware))
2013-08-08T03:27:45.673358+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/web/wsgi.py", line 54, in runwsgi
2013-08-08T03:27:45.673358+00:00 app[web.1]: return httpserver.runsimple(func, validip(listget(sys.argv, 1, '')))
2013-08-08T03:27:45.673358+00:00 app[web.1]: File "/app/.heroku/python/lib/python2.7/site-packages/web/net.py", line 76, in validip
2013-08-08T03:27:45.673358+00:00 app[web.1]: port = int(port)
2013-08-08T03:27:45.673552+00:00 app[web.1]: ValueError: invalid literal for int() with base 10: '/usr/local/bin:/usr/bin:/bin'
2013-08-08T03:27:46.866238+00:00 heroku[web.1]: Process exited with status 1
2013-08-08T03:27:46.881655+00:00 heroku[web.1]: State changed from starting to crashed
However, when i tried the second method, I receive this error:
Traceback (most recent call last):
File "code.py", line 55, in <module>
app.run(host='0.0.0.0', port=port)
TypeError: run() got an unexpected keyword argument 'host'
Any ideas how to get my app onto heroku up and running?