[Answered ]-Problems doing the Django tutorial on Dreamhost using Passengers

1đź‘Ť

âś…

Eventually I got the answer from the DH support service. They told me to

pkill python

I did it. I also checked with

ps -aux

what process I was running. And indeed I could see the python process starting when I went to the page, and being killed when I pkilled it.

Thanks for all that helped.

1đź‘Ť

Here’s the relevant section of the Passenger user’s guide for restarting Passenger:

http://www.modrails.com/documentation/Users%20guide.html#_redeploying_restarting_the_ruby_on_rails_application

1đź‘Ť

I had the same problem with Passenger not reloading the Django server.

According to Django wiki page on Dreamhost, you can touch a “restart.txt” file that Passenger watches. If the timestamp on the file changes, Passenger restarts Django.

If you modified your application and your changes do not seem to be reflected, you may need to notify Passenger about your change by creating or modifying ~/example.com/tmp/restart.txt:

touch /home/user/example.com/tmp/restart.txt

Source: http://wiki.dreamhost.com/Django#Hints

👤David Mann

-1đź‘Ť

For the tutorial, you should be working on a local machine, not a web server.

👤Steve Jalim

Leave a comment