added info about collecting static files for production environment
parent
f103e56c4b
commit
5a70d967e9
|
@ -61,6 +61,7 @@ Below are the steps for getting regluit running on EC2 with Apache and mod_wsgi,
|
|||
1. `pip install -r requirements.pip`
|
||||
1. `echo "/opt/" > ENV/lib/python2.7/site-packages/regluit.pth`
|
||||
1. `django-admin.py syncdb --migrate --settings regluit.settings.prod`
|
||||
1. `django-admin.py collectstatic --settings regluit.settings.prod`
|
||||
1. `sudo ln -s /opt/regluit/deploy/regluit.conf /etc/apache2/sites-available/regluit`
|
||||
1. `sudo a2ensite regluit`
|
||||
1. `sudo /etc/init.d/apache2 restart`
|
||||
|
|
|
@ -11,4 +11,4 @@ WSGIScriptAlias / /opt/regluit/deploy/regluit.wsgi
|
|||
Allow from all
|
||||
</Directory>
|
||||
|
||||
Alias /static /opt/regluit/static
|
||||
Alias /static /var/www/static
|
||||
|
|
|
@ -4,7 +4,7 @@ DEBUG = False
|
|||
TEMPLATE_DEBUG = DEBUG
|
||||
|
||||
ADMINS = (
|
||||
('Ed Summers', 'ehs@pobox.com'),
|
||||
('Ed Summers', 'ed.summers@gmail.com'),
|
||||
('Raymond Yee', 'rdhyee+ungluebugs@gluejar.com'),
|
||||
('Eric Hellman', 'eric@gluejar.com'),
|
||||
('Andromeda Yelton', 'andromeda@gluejar.com'),
|
||||
|
@ -107,4 +107,4 @@ LOGGING = {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
STATIC_ROOT = '/var/www/static'
|
||||
|
|
Loading…
Reference in New Issue