如何授予对Heroku上特定文件夹的权限? [英] How can I give permissions to specific folders on heroku?
问题描述
我正在尝试在heroku上安装thelia,但是我对文件夹的权限存在问题.如何以正确的方式制作chmod?
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?
这是我们的buildpack: https://github.com /fzaffo/heroku-buildpack-php/blob/master/bin/compile
Here is our buildpack: https://github.com/fzaffo/heroku-buildpack-php/blob/master/bin/compile
我们得到以下结果:chmod:
we're getting this result: chmod:
无法访问"/app/cache":没有此类文件或目录 (似乎无法在/app中找到文件夹)
cannot access ‘/app/cache’: No such file or directory (seems it can't find folders in /app)
这里是测试: http://eglaan.herokuapp.com
感谢支持.
推荐答案
您需要包括composer.json
并从此处射击chmod
命令:
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"
]
}
}
这篇关于如何授予对Heroku上特定文件夹的权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!