Further refinements to Heroku Support.

This commit is contained in:
2013-04-01 01:02:53 +01:00
parent 7e2ce6fb1a
commit 37eb0588b9
4 changed files with 10 additions and 4 deletions

2
.gitignore vendored
View File

@@ -2,5 +2,7 @@
*.pyc
*.sqlite3
static/
app/static/
app/media/
!app/*/static
.vagrant

View File

@@ -1 +1,5 @@
web: python manage.py run_gunicorn
web: cd app; python manage.py collectstatic --noinput; python manage.py run_gunicorn
debug: cd app; python manage.py collectstatic --noinput; DJANGO_DEBUG=1 python manage.py run_gunicorn
update_haystack: cd app; python manage.py update_index
reindex_haystack: cd app; python manage.py rebuild_index --noinput
syncdb: cd app; python manage.py syncdb --migrate --noinput

View File

@@ -27,10 +27,10 @@ USE_I18N = True
USE_L10N = True
USE_TZ = True
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), '..', '..', 'media')
MEDIA_ROOT = os.path.join(os.path.dirname(__file__), '..', 'media')
MEDIA_URL = '/media/'
STATIC_ROOT = os.path.join(os.path.dirname(__file__), '..', '..', 'static')
STATIC_ROOT = os.path.join(os.path.dirname(__file__), '..', 'static')
STATIC_URL = '/static/'
STATICFILES_DIRS = [

View File

@@ -5,7 +5,7 @@ geopy>=0.95
django-markdown-deux>=1.0.4
django-bootstrap-form>=1.4
django-extra-views>=0.6.2
-e hg+https://bitbucket.org/ubernostrum/django-registration@89093bc#egg=django_registration
-e hg+https://bitbucket.org/alper/django-registration@1cddccb#egg=django_registration
requests
pyelasticsearch
-e git+git://github.com/toastdriven/django-haystack.git@0e8bd20c18ce3133b3a4f285a4c420bb621ac49b#egg=django_haystack