librelist archives

« back to archive

Dreamhost+Passenger Tip

Dreamhost+Passenger Tip

From:
Joe Esposito
Date:
2011-04-01 @ 19:52
This is probably common knowledge, but I've never used Passenger before and
knowing this earlier would've saved me much frustration. (And no, despite
the day, this isn't a joke ;)

If you use Dreamhost+Passenger, make a directory named "*tmp*" in your app's
directory where you have passenger_wsgi.py, and create an empty file in
there called "*restart.txt*". Now every time you make a code change, you can
restart the Passenger application by updating the timestamp of that file
(you can use 'touch' on it). If you don't do this, you probably won't see
any immediate updates to your site.

Note that you don't have to do this for static files or templates. Just
thought I'd share =)