-
-
Save brianloveswords/1004992 to your computer and use it in GitHub Desktop.
Revisions
-
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -39,8 +39,7 @@ urlpatterns += patterns('', ) EOF git add . git commit -m 'startproject' git push heroku master heroku run bin/python mysite/manage.py syncdb -
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -23,7 +23,7 @@ MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ( ) EOF cat > Procfile <<EOF web: bin/python mysite/manage.py runserver 0.0.0.0:\$PORT --noreload worker: bin/python mysite/manage.py celeryd -E -B --loglevel=INFO EOF cat >> mysite/urls.py <<EOF -
There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,46 @@ virtualenv --no-site-packages . source bin/activate bin/pip install Django psycopg2 django-sentry bin/pip freeze > requirements.txt bin/django-admin.py startproject mysite cat >.gitignore <<EOF bin/ include/ lib/ EOF echo cat >> mysite/settings.py <<EOF INSTALLED_APPS = INSTALLED_APPS + ( 'django.contrib.admin', 'django.contrib.admindocs', 'indexer', 'paging', 'sentry', 'sentry.client', ) MIDDLEWARE_CLASSES = MIDDLEWARE_CLASSES + ( 'sentry.client.middleware.Sentry404CatchMiddleware', ) EOF cat > Procfile <<EOF web: bin/python mysite/manage.py runserver 0.0.0.0:$PORT --noreload worker: bin/python mysite/manage.py celeryd -E -B --loglevel=INFO EOF cat >> mysite/urls.py <<EOF urlpatterns += patterns('', url(r'^sentry/', include('sentry.urls')), ) from django.contrib import admin admin.autodiscover() urlpatterns += patterns('', url(r'^admin/doc/', include('django.contrib.admindocs.urls')), url(r'^admin/', include(admin.site.urls)), ) EOF git init git add . git commit -m 'startproject' git push origin master heroku run bin/python mysite/manage.py syncdb