def update_app(self):
pass
+ def update_config(self):
+ pass
+
def install_dependencies(self):
pass
self.env['WSGI_FILE'] = os.path.join(self.env['ROOT'], 'www',
'wsgi', self.env['PROJECT_NAME']) + '.wsgi'
+ self.env['WSGI_DIR'] = os.path.dirname(self.env['WSGI_FILE'])
+
if 'WSGI_SOURCE_FILE' not in self.env:
self.env['WSGI_SOURCE_FILE'] = 'wsgi_app.template'
os.system("touch %s" % self.env['WSGI_FILE'])
def update_config(self):
+ super(WSGISite, self).update_config()
+
source = self.find_resource(self.env['WSGI_SOURCE_FILE'])
self.render_template(source, self.env['WSGI_FILE'])
self.env['VHOST_FILE'] = os.path.join(self.env['CONFIG_DIR'], self.env['PROJECT_NAME'] + '.vhost')
def update_config(self):
+ super(ApacheSite, self).update_config()
+
source = self.find_resource(self.env['VHOST_SOURCE_FILE'])
- self.render_template(source, self.env['VHOST_CONFIG_FILE'])
+ self.render_template(source, self.env['VHOST_FILE'])
<VirtualHost *:80>
ServerName $DOMAIN
- ServerAlias $DOMAIN_ALIASES
ServerAdmin $ADMIN_EMAIL
WSGIDaemonProcess $PROJECT_NAME user=$WSGI_USER group=$WSGI_USER processes=$WSGI_PROCESSES threads=$WSGI_THREADS display-name=%{GROUP}
WSGIProcessGroup $PROJECT_NAME
- WSGIScriptAlias / $WSGI_TARGET
+ WSGIScriptAlias / $WSGI_FILE
<Directory $WSGI_DIR>
Order allow,deny
allow from all
</Directory>
- Alias /media $MEDIA_ROOT
- <Directory $MEDIA_ROOT >
+ Alias /media $MEDIA_DIR
+ <Directory $MEDIA_DIR>
Order allow,deny
Allow from all
</Directory>
from __future__ import absolute_import
-from settings.common import *
+from .common import *
DATABASE_ENGINE = 'sqlite3' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
DATABASE_NAME = PROJECT_ROOT + '/dev.sqlite' # Or path to database file if using sqlite3.