我正在尝试在 heroku 上安装 thelia,但我遇到了文件夹权限问题。我怎样才能以正确的方式制作 chmod?
这是我们的构建包:https://github.com/fzaffo/heroku-buildpack-php/blob/master/bin/compile
我们得到这个结果:chmod:
cannot access ‘/app/cache’: No such file or directory (seems it can't find folders in /app)
这是测试:http://eglaan.herokuapp.com
感谢支持。
最佳答案
您需要包含 composer.json
并从那里执行 chmod
命令:
{
"scripts": {
"compile": [
"chmod -R 777 var/",
"chmod 755 etc/",
"chmod 644 etc/config.php"
]
}
}
关于php - 如何授予 heroku 上特定文件夹的权限?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36455888/