Permalink
Browse files

Experimental stackato support

  • Loading branch information...
1 parent 46f97e7 commit f1be7319632145a6a1a35bd60f4346cff3fcc967 @kumar303 committed Feb 1, 2013
Showing with 39 additions and 0 deletions.
  1. +22 −0 stackato.yml
  2. +17 −0 wsgi.py
View
@@ -0,0 +1,22 @@
+name: inapp-pay-test
+framework: python
+runtime: python27
+env:
+ DJANGO_SETTINGS_MODULE: inapp_pay_test.settings
+ PIP_OPTS: --no-deps --exists-action=w
+ PIP_REQUIREMENTS_FILE: requirements/prod.txt
+requirements:
+ pypm:
+ - m2crypto==0.21.1
+ - jinja2==2.6
+min_version:
+ client: 1.4.3
+#services:
+hooks:
+ post-staging:
+ - python manage.py syncdb --noinput
+ignores:
+ - .git
+ - inapp-pay-test.db
+#processes:
+# web: $STACKATO_UWSGI --mount foo=wsgi/playdoh.wsgi
View
17 wsgi.py
@@ -0,0 +1,17 @@
+import os
+import site
+
+os.environ.setdefault('CELERY_LOADER', 'django')
+# NOTE: you can also set DJANGO_SETTINGS_MODULE in your environment to override
+# the default value in manage.py
+
+# Add the app dir to the python path so we can import manage.
+site.addsitedir(os.path.abspath(os.path.dirname(__file__)))
+
+# manage adds /apps, /lib, and /vendor to the Python path.
+import manage
+
+import django.core.handlers.wsgi
+application = django.core.handlers.wsgi.WSGIHandler()
+
+# vim: ft=python

0 comments on commit f1be731

Please sign in to comment.