I need help from someone who understands linux. I cannot push my static files in Heroku (I am trying to use whitenoise, not Amazon S3 or any CDN). The error is quite simple, when I try to click on the hero, I get:
Preparing static assets
Running collectstatic...
Traceback (most recent call last):
OSError: [Errno 30] Read-only file system: '/assets'
So, I cannot run collectstatic because I do not have permissions. If I do sudo git push heroku master, I get another error: Permission denied (publickey)And I think this is the reason why "sudo" uses a different SSH key.
I tried changing the permissions of the folder from the file manager, and I also tried from bash:
sudo chmod 777 -R static
static - parent folder: static / assets.
So ... how can I solve this? Any help would be greatly appreciated.