title: uploading web.py app on Heroku
body: <p>just started on using web.py and heroku, so...</p>
  
  <p>I have this simple app that I want to upload to heroku and I have followed the instruction from <a href="http://joshuaoiknine.com/post/47196802362/publishing-for-the-web-py-python-framework-to-heroku" rel="nofollow">http://joshuaoiknine.com/post/47196802362/publishing-for-the-web-py-python-framework-to-heroku</a></p>
  
  <p>This is my Procfile:</p>
  
  <pre><code>web: python code.py $PATH
  </code></pre>
  
  <p>But after I uploaded it to heroku, it gives me the application error.
  The heroku log shows me this:</p>
  
  <pre><code>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 &lt;module&gt;
  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
  </code></pre>
  
  <p>However, when i tried the second method, I receive this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "code.py", line 55, in &lt;module&gt;
      app.run(host='0.0.0.0', port=port)
  TypeError: run() got an unexpected keyword argument 'host'
  </code></pre>
  
  <p>Any ideas how to get my app onto heroku up and running?</p>