我正在尝试在 VPS 上部署 octopress 但收到此错误bundle: not found
但已安装捆绑包!
完全错误。
$ cap deploy
* 2013-07-20 18:08:55 executing `deploy'
* 2013-07-20 18:08:55 executing `deploy:update'
** transaction: start
* 2013-07-20 18:08:55 executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote git@mydomain.com:website.git HEAD"
command finished in 8348ms
* executing "if [ -d /home/deploy/ruby_apps/website/shared/cached-copy ]; then cd /home/deploy/ruby_apps/website/shared/cached-copy && git fetch -q origin && git fetch --tags -q origin && git reset -q --hard de26553c0aa7ea583e0bfdec2c103ba83adbb793 && git clean -q -d …
Run Code Online (Sandbox Code Playgroud) 根据他的博客,Capistrano 的主要作者在 2009 年停止维护它。旧网站 capify.org 现在重定向到Github上的文档,虽然通过CHANGELOG似乎仍然有贡献被接受,但将 Capistrano 归类为一个活跃项目是否公平?
相反,如果它运行良好并且仍然稳定,是否有任何理由放弃它?
我在这里使用 nginx 1.6.2 和 Unicorn 进行 capistrano 设置。但是在我当前的设置下,nginx 不会创建我在 con 文件中编写的服务器。我确定这是我的用户目录的权限错误,因为 conf 文件位于两个 rails app 目录下。
我的nginx文件如下:
user mjp nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
#gzip on;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
}
Run Code Online (Sandbox Code Playgroud)
/etc/nginx/conf.d/*.conf;
是空的。
/etc/nginx/sites-enabled/;
目录包含 2 个符号链接:
[mjp@centos nginx]$ ll sites-enabled/
total 4 …
Run Code Online (Sandbox Code Playgroud) 我正在尝试启用无密码 sudo 以在 RHEL 机器上更新 yum。我在 sudo visudo 中有以下行。
myuser ALL=(ALL) NOPASSWD: /usr/bin/yum update
Run Code Online (Sandbox Code Playgroud)
在 myuser 下执行此操作后,如果不提供我的 sudo 密码,我仍然无法更新 yum。
/usr/bin/env sudo yum -y update
sudo yum -y update
我需要这样做的原因是因为在 Capistrano 3 中它说这是最好的方法。它似乎不再允许 sudo 提示。