aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/role/manifests/caldance.pp10
-rw-r--r--modules/role/templates/caldance/manage.py.erb9
2 files changed, 0 insertions, 19 deletions
diff --git a/modules/role/manifests/caldance.pp b/modules/role/manifests/caldance.pp
index d4c8207..1ec51bf 100644
--- a/modules/role/manifests/caldance.pp
+++ b/modules/role/manifests/caldance.pp
@@ -118,16 +118,6 @@ class role::caldance (
118 118
119 $uwsgi_path = "${home}/virtualenv/bin/uwsgi" 119 $uwsgi_path = "${home}/virtualenv/bin/uwsgi"
120 $python_path = "${home}/virtualenv/bin/python" 120 $python_path = "${home}/virtualenv/bin/python"
121 file { "$caldance_app/manage.py":
122 owner => $user,
123 group => $group,
124 mode => "0644",
125 content => template("role/caldance/manage.py.erb"),
126 require => [
127 User["$user:"],
128 Archive[ "${home}/caldance_${caldance_version}.tar.gz"],
129 ],
130 }
131 file { "$caldance_app/manage": 121 file { "$caldance_app/manage":
132 owner => $user, 122 owner => $user,
133 group => $group, 123 group => $group,
diff --git a/modules/role/templates/caldance/manage.py.erb b/modules/role/templates/caldance/manage.py.erb
deleted file mode 100644
index dc06eab..0000000
--- a/modules/role/templates/caldance/manage.py.erb
+++ /dev/null
@@ -1,9 +0,0 @@
1#!<%= @python_path %> -O
2import os
3import sys
4
5if __name__ == "__main__":
6 os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings")
7
8 from django.core.management import execute_from_command_line
9 execute_from_command_line(sys.argv)