You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for preparing the project template. It is usable and I can deploy it to display a "Hello, World" page.
I encountered an issue when I checked the logs from the CI job and Heroku. I found out that there might
be a problem related to the static assets when the app was in deployment process at Heroku.
-----> $ python manage.py collectstatic --noinput
System check identified some issues:
WARNINGS:
?: (staticfiles.W004) The directory '/tmp/build_9f0fd430/static'in the STATICFILES_DIRS setting does not exist.
130 static files copied to '/tmp/build_9f0fd430/staticfiles', 384 post-processed.
Sample log from Heroku after deployment:
System check identified some issues:
WARNINGS:
?: (staticfiles.W004) The directory '/app/static'in the STATICFILES_DIRS setting does not exist.
I believe Heroku always invoke collectstatic command whenever they build a Django Web project.
I think there might be an issue with the Django project configuration in settings.py. Could someone triage the issue?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
I think I found the cause. There is no static directory yet in the code template and base.html wants to import a CSS file in the header, which still does not exist.
edutjie
added a commit
to edutjie/django-pbp-template
that referenced
this issue
Sep 7, 2022
Good day.
Thanks for preparing the project template. It is usable and I can deploy it to display a "Hello, World" page.
I encountered an issue when I checked the logs from the CI job and Heroku. I found out that there might
be a problem related to the static assets when the app was in deployment process at Heroku.
The relevant part of the CI job log from https://github.com/pbp-fasilkom-ui/django-pbp-template/runs/8170403745?check_suite_focus=true#step:6:50:
Sample log from Heroku after deployment:
I believe Heroku always invoke
collectstatic
command whenever they build a Django Web project.I think there might be an issue with the Django project configuration in
settings.py
. Could someone triage the issue?Thanks in advance!
The text was updated successfully, but these errors were encountered: