Apigility 需要哪些目录权限?

What directory permissions does Apigility require?

我意识到 Apigility UI 需要对 /modules 目录和 /config 目录的写入权限。我的问题是,它创建的子目录需要什么权限?

在我的例子中,它创建了 755 的子目录(例如 /module/myapi)。我的网络服务器用户不拥有文件结构或不属于相关组,因此无法写入它创建的目录。我认为这可能是导致我收到错误的原因。

一般情况下我会把用户、组和权限修改成我想要的。然而,在这种情况下,我使用的是 Vagrant,并且同步目录的权限由主机控制。

我只能回答最后一部分

Under normal circumstances I would just modify the users, groups and permissions to whatever I wanted. In this case, however, I am using Vagrant and the permissions on my synched directories are under control of the host.

您仍然可以从 Vagrantfile 管理它:

config.vm.synced_folder "apigility_path/modules", "/modules", owner: "web", group: "web"

这将在主机上创建具有正确 user/group

的文件夹

如果需要,您还可以使用 mount_options 属性:

添加权限的粒度
config.vm.synced_folder "apigility_path/modules", "/modules", owner: "web", group: "web", :mount_options => ["dmode=755","fmode=755"]