Heroku - Manipulando arquivos estáticos no aplicativo Django
Tenho um projeto (myapp) no heroku, mas não consigo que os arquivos estáticos funcionem corretamente. Eu estava seguindo issoblog post.
MinhasProcfile
se parece com isso
web: python myapp/manage.py collectstatic --noinput; bin/gunicorn_django --workers=4 --bind=0.0.0.0:$PORT myapp/settings.py
settings.py
:
...
STATIC_ROOT = os.path.join(PROJECT_PATH, 'staticfiles')
STATIC_URL = '/static/'
ADMIN_MEDIA_PREFIX = '/static/admin/'
STATICFILES_DIRS = (
# I have the static folder inside my app and not inside the project
os.path.join(PROJECT_PATH, 'cesar/static'),
)
...
Quando reiniciar usandoheroku restart
é isso que oheroku logs
shows:
...
Copying ...
114 static files copied to '/app/myapp/staticfiles'.
...
Mas quando eu façoheroku run ls -l myapp/
Não consigo ver ostaticfiles
pasta
-rw------- 1 u5605 5605 0 Jan 28 16:53 __init__.py
drwx------ 4 u5605 5605 4096 Jan 28 16:53 cesar
-rw------- 1 u5605 5605 503 Jan 28 16:53 manage.py
-rw------- 1 u5605 5605 6292 Jan 28 16:53 settings.py
drwx------ 2 u5605 5605 4096 Jan 28 16:53 templates
-rw------- 1 u5605 5605 257 Jan 28 16:53 urls.py
-rw------- 1 u5605 5605 286 Jan 28 16:53 views.py
O que estou perdendo ou fazendo de errado?