簡體   English   中英

廚師食譜上載錯誤

[英]Chef Cookbook Upload error



嘗試將我的食譜上傳到服務器時,出現以下錯誤聲明。

“正在上傳first_cb [0.1.0]
錯誤:ArgumentError:控件轉義時間太短”

命令是:
$刀食譜上傳first_cb

default.rb包含以下代碼:

package "httpd" do
    action :install
end

service "httpd" do
    action [:enable, :start]
end

template "/var/www/html/index.html" do
    source "index.html"
    mode "0644"
end

knife.rb

current_dir = File.dirname(__FILE__) 
log_level :info 
log_location STDOUT 
node_name "ktgirish" 
client_key "#{current_dir}/ktgirish.pem" 
chef_server_url "https://api.chef.io/organizations/girish123" 
cookbook_path ["#{current_dir}/../cookbooks"]

提前致謝...!!!

我認為您需要傳遞源'index.html.erb'而不是index.html。 您需要在模板文件夾中創建一個index.html.erb文件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM