My DreamHost template for creating a new python sight using the passanger apache module.
- Setup the subdomain in the DreamHost Control Panel
- SSH into the account to compleate the rest of the steps
- Checkout this repository into a directory matching the subdomain you are setting up
- Edit
scripts/init_env.sh
(lines 6 to end of file) to install the python modules you application will need - Run the script
scripts/init_env.sh
to setup the environment and install the python modules.
- This can be done anytime to refresh the environment and clean out anything you may have tested
- DreamHost python virtualenv and module install
- Test that everything works as it is checked out
- Remove the myAppModule directory. You will replace this with your own application
- Add in your own application module
- Edit
passenger_wsgi.py
- Change line 49 to include your application module
- Change line 63 to reflect you application entrypoint
- Try out your application
- DreamHost passanger troubleshooting
- Change line 6 of
passenger_wsgi.py
to enable DEBUG. This will output more information to the logfileslogs/passanger/passenger_wsgi.log