2016-08-25 14 views
0

我試圖index.html的我的臨時服務器上傳文件上傳,不能在現有文件夾

Errno::ENOENT: No such file or directory @ rb_sysopen - //home/deploy/workspace/webApp/current/index.html

upload! "#{Dir.pwd}/src/index.html", "/#{current_path}/index.html"

然而,//home/deploy/workspace/webApp/current確實存在。

如果我嘗試/tmp/index.html它的作品完美。

我想Capistrano是使用成熟阻止這種奇特的怪問題T_T

回答

0

它看起來像你有你的目標路徑兩家領先斜線:

//home/deploy/workspace/webApp/current/index.html 
^^ 

這是一個無效的路徑。刪除額外的斜槓並重試。

upload! "#{Dir.pwd}/src/index.html", "#{current_path}/index.html" 
相關問題