Skip to content

Commit

Permalink
Added sh to Procfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gtalarico committed Aug 10, 2018
1 parent d70d87a commit 68b3321
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
release: ./release.sh
release: sh ./release.sh
web: gunicorn project.wsgi --log-file -
1 change: 1 addition & 0 deletions project/settings/dev.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,4 @@
STATICFILES_DIRS = [
os.path.join(BASE_DIR, 'dist', 'static'),
]
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')
1 change: 0 additions & 1 deletion project/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
##########

STATICFILES_STORAGE = 'whitenoise.storage.CompressedManifestStaticFilesStorage'
STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles')

# Insert Whitenoise Middleware at top but below Security Middleware
MIDDLEWARE.insert(1, 'whitenoise.middleware.WhiteNoiseMiddleware',)
Expand Down
2 changes: 2 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Collect Static is Done Manually
# because Heroku runs `collectstatic`` before `yarn build`
# so dist is not ready
echo "Collecting Static..."
python manage.py collectstatic --noinput
echo "Migrate..."
python manage.py migrate

0 comments on commit 68b3321

Please sign in to comment.