0

运行 cap Rubber:config 时出现以下错误。希望有人能给我指路。

这是我正在运行的命令:bundle exec Rubber "config" 如您所见,它抱怨最后缺少“mkdir -p”命令的操作数。

The source :rubygems is deprecated because HTTP requests are insecure.
Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/crontab
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/gemrc
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/ntp-sysctl.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/ntp.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/rsyslog.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/rubber.profile
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/common/ruby.profile
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/collectd/collectd-ping.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/collectd/collectd.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/collectd/filters.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/collectd/graphite-collectd.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/collectd/thresholds.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/collectd/types.db
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/haproxy/haproxy-base.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/haproxy/haproxy-default.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/haproxy/haproxy-passenger.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/haproxy/monit-haproxy.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/haproxy/syslog-haproxy.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/haproxy/syslogd-default.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/monit/monit-default.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/monit/monit-postfix.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/monit/monit.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/passenger_nginx/application.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/passenger_nginx/crontab
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/passenger_nginx/monit-nginx.conf
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/passenger_nginx/nginx
Rubber[INFO]: Transforming /mnt/publify-production/releases/20130814042309/config/rubber/role/passenger_nginx/nginx.conf
Rubber[INFO]: Transformation executing post config command: function error_exit { exit 99; }; trap error_exit ERR
mkdir -p 
mkdir: missing operand
Try `mkdir --help' for more information.
Rubber[INFO]: 
Rubber[ERROR]: Transformation failed for /mnt/publify-production/releases/20130814042309/config/rubber/role/passenger_nginx/nginx.conf
Rubber[ERROR]: Post command failed execution: function error_exit { exit 99; }; trap error_exit ERR
mkdir -p
4

1 回答 1

0

您可能需要像我一样将 nginx_log_dir 设置添加到您的 Rubber-passenger_nginx.yml 文件中。弹出该文件并添加它:

nginx_log_dir: /mnt/nginx/logs

我希望这对你有帮助。

编辑:

请参阅修复此问题的已接受拉取请求:Github 拉取请求

于 2013-09-07T20:02:20.077 回答