Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jbl2024/django_sample_env
base: 9096aa099b
...
head fork: jbl2024/django_sample_env
compare: 9cad4a3e9d
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
View
5 sample_project/deploy/__init__.py
@@ -0,0 +1,5 @@
+# REALLY UGLY THING
+# =================
+from os.path import abspath, dirname, join
+deploy = join(abspath(dirname(__file__)), 'deploy.wsgi')
+execfile(deploy)
View
13 sample_project/deploy/runit.example.sh
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+GUNICORN=../vtenv/bin/gunicorn
+PID=/var/run/django_sample_env.pid
+USER=user
+APP=deploy
+DIR=/path/to/application
+
+if [ -f $PID ]; then rm $PID; fi
+
+cd $DIR
+exec sudo -H -u $USER DJANGO_MODE="development" $GUNICORN $APP
+#exec sudo -H -u cyberj $GUNICORN --pid=$PID $APP

No commit comments for this range

Something went wrong with that request. Please try again.