Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor jumpstart into a Django app.
- Loading branch information
Showing
6 changed files
with
60 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
|
||
import os | ||
|
||
import django.core.handlers.wsgi | ||
|
||
os.environ["DJANGO_SETTINGS_MODULE"] = "config.jumpstart.settings" | ||
|
||
application = django.core.handlers.wsgi.WSGIHandler() | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/usr/bin/env python | ||
|
||
from config.settings import * | ||
from config.deployed.settings import * | ||
|
||
# Running in deployed mode | ||
SETTINGS = 'jumpstart' | ||
|
||
INSTALLED_APPS = ( | ||
'longerusername', | ||
'django.contrib.auth', | ||
'django.contrib.contenttypes', | ||
'django.contrib.sessions', | ||
'django.contrib.messages', | ||
'django.contrib.admin', | ||
'django.contrib.humanize', | ||
'django.contrib.sites', | ||
'django.contrib.staticfiles', | ||
|
||
'south', | ||
'tastypie', | ||
'djcelery', | ||
'compressor', | ||
'livesettings', | ||
|
||
'jumpstart' | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
|
||
from django.conf.urls.defaults import patterns, url | ||
|
||
from jumpstart import views | ||
|
||
urlpatterns = patterns('', | ||
url(r'^$', views.jumpstart, name='jumpstart') | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
description "uWSGI jumpstart server for PANDA" | ||
description "uWSGI Jumpstart server for PANDA" | ||
start on runlevel [2345] | ||
stop on runlevel [!2345] | ||
respawn | ||
env DEPLOYMENT_TARGET=jumpstart | ||
script | ||
rm -rf /var/run/uwsgi | ||
mkdir -p /var/run/uwsgi | ||
/usr/local/bin/uwsgi --socket /var/run/uwsgi/uwsgi.sock --chmod-socket --module application --callable app --chdir /opt/panda/jumpstart -p 1 --logto /var/log/uwsgi.log | ||
/usr/local/bin/uwsgi --socket /var/run/uwsgi/uwsgi.sock --chmod-socket --module application_jumpstart --pythonpath /opt/panda -p 1 --logto /var/log/uwsgi.log | ||
end script |