$uwsgi_path = "${home}/virtualenv/bin/uwsgi"
$python_path = "${home}/virtualenv/bin/python"
- file { "$caldance_app/manage.py":
- owner => $user,
- group => $group,
- mode => "0644",
- content => template("role/caldance/manage.py.erb"),
- require => [
- User["$user:"],
- Archive[ "${home}/caldance_${caldance_version}.tar.gz"],
- ],
- }
file { "$caldance_app/manage":
owner => $user,
group => $group,
+++ /dev/null
-#!<%= @python_path %> -O
-import os
-import sys
-
-if __name__ == "__main__":
- os.environ.setdefault("DJANGO_SETTINGS_MODULE", "main_app.settings")
-
- from django.core.management import execute_from_command_line
- execute_from_command_line(sys.argv)