Permalink
Browse files

adding media root and prefix to nginx

  • Loading branch information...
1 parent f62cdd6 commit 9548e00008ddb9d9e84cd3913f1c90f7f8fe32cf @oppianmatt oppianmatt committed Apr 4, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 puppet/modules/oppian/manifests/init.pp
View
12 puppet/modules/oppian/manifests/init.pp
@@ -18,13 +18,25 @@
django => true,
requirements => true,
django_syncdb => true,
+ mediaroot => "/deploy/$project/media",
+ mediaprefix => "/m",
pythonpath => ["lib/django", "apps", "apps/oppianapp/utils", "lib/django-storages"],
}
file { "/deploy/$project/settings_local.py":
ensure => file,
content => template('oppian/settings.py.erb'),
}
+
+ file { "/deploy/$project/media/admin":
+ ensure => link,
+ target => "/deploy/$project/lib/django/django/contrib/admin/media"
+ }
+
+ file { "/deploy/$project/media/favicon.ico":
+ ensure => link,
+ target => "/deploy/$project/media/images/favicon.ico"
+ }
class {'varnish':}

0 comments on commit 9548e00

Please sign in to comment.