Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I give permissions to specific folders on heroku?

I'm trying to install thelia on heroku, but I've problems with permissions on folders. How can I make chmod in the right way?

Here is our buildpack: https://github.com/fzaffo/heroku-buildpack-php/blob/master/bin/compile

we're getting this result: chmod:

cannot access ‘/app/cache’: No such file or directory (seems it can't find folders in /app)

Here's the test: http://eglaan.herokuapp.com

Thanks for support.

like image 920
fluppi Avatar asked Apr 06 '16 15:04

fluppi


People also ask

How can I see my heroku folder?

after start a session with heroku login and then run the command heroku run bash --app your-app-name, work for me as said in the answer.


1 Answers

You need to include composer.json and shoot the chmod command from there:

{
  "scripts": {
    "compile": [
      "chmod -R 777 var/",
      "chmod 755 etc/",
      "chmod 644 etc/config.php"
    ]
  }
}
like image 139
Dmitros Nistom Avatar answered Oct 01 '22 07:10

Dmitros Nistom