I am using Django with Passenger on Dreamhost.
Every time I make a change to models, settings or views I need to pkill python from a terminal session. Does anyone know of a way to automate this? Is this something that Passenger can do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My advice would be to test locally using Django’s builtin server.
It does precisely auto-reload, so that any change to your code will be available.
I’m not familiar with Dreamhost, but if modwsgi is on embedded mode this is not possible.
In Daemon mode, you could write some code to detect file changes and restart the processes.