gpt4 book ai didi

ruby-on-rails - 使用 Capistrano 2.5.19 部署 Rails 3 应用程序时,共享/系统中应该有什么?

转载 作者:行者123 更新时间:2023-12-04 19:23:39 25 4
gpt4 key购买 nike

我在 Ubuntu 上使用 Apache2 运行乘客。我想知道我应该看什么,我怀疑我的 Capistrano 配置/权限。

我的应用程序似乎按预期部署到当前。我可以看到所有的项目文件。我在当前/公共(public)目录中看到一个指向共享/系统的符号链接(symbolic link)。当我查看共享/系统的内容时,什么都没有,没有符号链接(symbolic link)或文件。这个对吗?缺少符号链接(symbolic link)吗?

Capistrano 部署文件:
https://github.com/danieldbower/passhasher/blob/master/config/deploy.rb

在 Apache 中记录的消息:
Apache/2.2.16 (Ubuntu) Phusion_Passenger/3.0.2 mod_ssl/2.2.16 OpenSSL/0.9.8o 已配置——恢复正常操作
Options 指令禁止的目录索引:/var/www/passhasher/

Apache 配置:
别名/passhasher/var/www-rails/passhasher/current/public
<目录/var/www-rails/passhasher/current/public>
允许覆盖所有
选项 - 多 View

最佳答案

这是您保存与部署的特定版本无关的所有文件的默认文件夹。

我把用户上传的内容放在里面。

看看这里:

http://blog.alastairdawson.com/2007/03/13/stop-uploaded-files-getting-deleted-with-capistrano/

关于ruby-on-rails - 使用 Capistrano 2.5.19 部署 Rails 3 应用程序时,共享/系统中应该有什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4839173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com