Hi Zak, Like you, I also tried to use a run shell script when deploying my Pyramid aplication locally on my own server (not Heroku). Maybe I can shed some light on the run script.
The run script is just a shell script (in my case a BASH script) to run your pyramid app. I also use Gunicorn. In my project root directory I had a config.py file to store the gunicorn initialization variables. It's something like: import multiprocessing workers = multiprocessing.cpu_count() * 2 +1 timeout = 60 daemon = True pidfile = "/srv/web/run/test/test.pid" errorlog = "/srv/web/log/test/test.log" Then in my run script I have: #!/bin/bash gunicorn_paster --config=<path_to_config.py_file> /srv/web/prod/test/production.ini I'm pretty sure this will be similar when used under Heroku. I hope this helps your use case. Regards, Mark Huang On Monday, 1 October 2012 01:41:32 UTC+8, Zak wrote: > > I'm trying to run a Pyramid app with Heroku's Foreman (via the these > instructions from the Pyramid > docs<http://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/deployment/heroku.html>). > > I've already used these lines to try creating run: > > python setup.py develop > python runapp.py > > But it keeps giving me this error when I try to foreman start: > > zak$ sudo foreman start > 12:27:59 web.1 | started with pid 1308 > 12:27:59 web.1 | /usr/local/foreman/bin/runner: line 36: > /Users/MyProject/run: No such file or directory > 12:27:59 web.1 | process terminated > 12:27:59 system | sending SIGTERM to all processes > > this is the contents of my procfile: > > web: ./run > > I've already created a runapp.py. Why is it not able to located run? > -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To view this discussion on the web visit https://groups.google.com/d/msg/pylons-discuss/-/Fy9CDKB1en4J. To post to this group, send email to pylons-discuss@googlegroups.com. To unsubscribe from this group, send email to pylons-discuss+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en.