How can I give permissions to specific folders on heroku?

守給你的承諾、 提交于 2019-12-10 05:52:48

问题


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.


回答1:


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"
    ]
  }
}


来源:https://stackoverflow.com/questions/36455888/how-can-i-give-permissions-to-specific-folders-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!