Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Merge pull request #2 from dotcloud/master

Pull static files out of ~/data/
  • Loading branch information...
commit 9a9aad2c27bb47c9b441f46611fe14052b7cd018 2 parents a971946 + 78d9f1a
Jérôme Petazzoni authored

Showing 3 changed files with 3 additions and 3 deletions. Show diff stats Hide diff stats

  1. +1 1  hellodjango/settings.py
  2. +1 1  nginx.conf
  3. +1 1  postinstall
2  hellodjango/settings.py
@@ -60,7 +60,7 @@
60 60 # Don't put anything in this directory yourself; store your static files
61 61 # in apps' "static/" subdirectories and in STATICFILES_DIRS.
62 62 # Example: "/home/media/media.lawrence.com/static/"
63   -STATIC_ROOT = '/home/dotcloud/data/static/'
  63 +STATIC_ROOT = '/home/dotcloud/volatile/static/'
64 64
65 65 # URL prefix for static files.
66 66 # Example: "http://media.lawrence.com/static/"
2  nginx.conf
... ... @@ -1,3 +1,3 @@
1 1 location /media/ { root /home/dotcloud/data ; }
2   -location /static/ { root /home/dotcloud/data ; }
  2 +location /static/ { root /home/dotcloud/volatile ; }
3 3
2  postinstall
... ... @@ -1,5 +1,5 @@
1 1 #!/bin/sh
2 2 python hellodjango/manage.py syncdb --noinput
3 3 python mkadmin.py
4   -mkdir -p /home/dotcloud/data/media /home/dotcloud/data/static
  4 +mkdir -p /home/dotcloud/data/media /home/dotcloud/volatile/static
5 5 python hellodjango/manage.py collectstatic --noinput

0 comments on commit 9a9aad2

Please sign in to comment.
Something went wrong with that request. Please try again.