我的capistrano版本似乎被“吸住了”,因为无论我发送多少<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jcanvas/21.0.1/min/jcanvas.min.js"></script>
<script src="https://cdn.rawgit.com/konvajs/konva/2.2.1/konva.min.js"></script>
<div id="container"></div>
<canvas id="canvas"></canvas>
,都会重复生成/ current文件夹,指向同一文件夹。
cap production deploy
即使删除/ current文件夹,/ releases文件夹,/ repo文件夹,/ temp文件夹和versions.log文件,并再次运行# Trying to open /current with FTP Sync
Command: CWD /public_html/storekey-demo/releases/20180813141339
Response: 550 /public_html/storekey-demo/releases/20180813141339: No such file or directory
Error: Failed to retrieve directory listing
,也会创建指向相同链接的符号链接夹。我想我已经尽力了。
这是我的deploy.rb文件
capistrano
这是我的部署日志,您可以看到没有错误
lock "~> 3.11.0"
set :application, "storekey_demo" # don't use "-"
set :repo_url, "git@gitlab.com: xxxxxxxxxxx .git"
set :deploy_to, "/home/u0000000/public_html/storekey-demo"
set :tmp_dir, '/home/u0000000/public_html/tmp'
namespace :deploy do
desc "Build"
after :updated, :build do
on roles(:web) do
within release_path do
execute :composer, "install --no-dev --quiet --optimize-autoloader"
end
end
end
end
namespace :deploy do
desc "Copy Env"
after :finished, :copy do
on roles(:all) do
upload! "production.env", "#{current_path}/.env"
end
end
end
答案 0 :(得分:1)
问题似乎出在FileZilla本身,而不是capistrano。
我通过服务器上的SSH控制台进入并删除了/ current符号链接,然后再次创建它指向最后一个版本,并运行capistrano production deploy
。问题已解决,更改已正确部署,但是FireZilla仍无法正确识别符号链接。