While I tried to do so, I was unable to upload a .env file which I used on my development machine to keep track of the environment variables.
I hit this issue when I run my code, anyone knows of any resolution? Thank you!
! Error while running '$ python manage.py collectstatic --noinput'.
07:14:01 PM stderr See traceback above for details.
07:14:01 PM stderr
07:14:01 PM stderr You may need to update application code to resolve this error.
07:14:01 PM stderr Or, you can disable collectstatic for this application:
07:14:01 PM stderr
07:14:01 PM stderr $ heroku config:set DISABLE_COLLECTSTATIC=1
07:14:01 PM stderr
07:14:01 PM stderr https://devcenter.heroku.com/articles/django-assets
07:14:01 PM stderr ERROR: failed to build: exit status 1
07:14:01 PM stderr exit status 51
I was trying to deploy a django app that was developed through the use of a separate .env file that houses all the environment properties. Somehow, when I deploy the app through Koyeb, I kept hitting the collectstatic issue above.
I tried adding a simple .env file but it seems like not reading it. Not sure if there is a way to override the default behaviour, or to introduce something in my code suitable for Koyeb environment.
Note that you can drag and drop your .env file to this section of the form and we will parse the file to create the corresponding environment variables.