mount djangocms on / again - found working nginx config

Signed-off-by: Nico Schottelius <nico@wurzel.schottelius.org>
This commit is contained in:
Nico Schottelius 2015-06-12 21:45:33 +02:00
parent b49e60378a
commit b619a2b57a
2 changed files with 13 additions and 1 deletions

View file

@ -62,3 +62,15 @@ configure the values for the ssh host, user, port and target directory.
There's an example for the nginx proxy in configs/nginx.proxy.conf. There's an example for the nginx proxy in configs/nginx.proxy.conf.
For the stating server one can just copy configs/nginx.proxy.conf -> /etc/nginx/conf.d/ungleich.proxy.conf. For the stating server one can just copy configs/nginx.proxy.conf -> /etc/nginx/conf.d/ungleich.proxy.conf.
Remember to comment/delete/change the configuration /etc/nginx/sites-enabled/default. Remember to comment/delete/change the configuration /etc/nginx/sites-enabled/default.
Other stuff (unsorted):
python manage.py makemigrations
- restart
- should have sudo!
/etc/init.d/uwsgi restart
- staticfiles:
python manage.py collectstatic

View file

@ -10,7 +10,7 @@ urlpatterns = [
namespace="digitalglarus")), namespace="digitalglarus")),
url(r'^railshosting/', include('railshosting.urls', url(r'^railshosting/', include('railshosting.urls',
namespace="railshosting")), namespace="railshosting")),
url(r'^cms/', include('cms.urls')), url(r'^', include('cms.urls')),
url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')), url(r'^taggit_autosuggest/', include('taggit_autosuggest.urls')),
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) ] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)