I am going to setup tg using nginx in virtualenv and uwsgi. So setup is going to be like:
# Become su
sudo su
# The main dir for hosting and virtualenvs
mkdir /web
# Create venv dir for all virtualenvs
mkdir /web/venv
# create virtualenv for tg
mkdir /web/venv/tg22_venv
source /web/venv_tg22_venv/bin/activate
easy_install -i
http://tg.gy/220 tg.devtools
# create app directory for all web based applications
mkdir /web/venv/apps
# clone your developed tg application inside apps to /web/venv/apps/tgapp
hg clone <your developed app> <hosted app tgapp>
I will be using nginx web server and uwsgi. I know how to configure them so that they run the tgapp's built in paster server
nginx -> uwsgi -> paste server.
The question is what should be the permission set on the /web and subsequent directories for security reasons etc..
Is "chown www-data:www-data -R /web" will be enough?