mkdir -p运行rubber时缺少操作数:config

时间:2013-08-14 14:32:44

标签: ruby-on-rails-3 capistrano rubber

我在运行cap rubber:config时遇到以下错误。希望有人能给我指示。

以下是我正在运行的命令:捆绑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

1 个答案:

答案 0 :(得分:0)

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

nginx_log_dir: /mnt/nginx/logs

我希望能帮助你。

编辑:

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