doushang3352 2016-04-06 15:39
浏览 85

如何授予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.

  • 写回答

1条回答 默认 最新

  • doujiku1028 2017-01-02 13:54
    关注

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

报告相同问题?

悬赏问题

  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘
  • ¥15 matlab有关常微分方程的问题求解决
  • ¥15 perl MISA分析p3_in脚本出错
  • ¥15 k8s部署jupyterlab,jupyterlab保存不了文件
  • ¥15 ubuntu虚拟机打包apk错误
  • ¥199 rust编程架构设计的方案 有偿
  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考