有没有办法在卡皮斯特拉诺3中设置一个默认的舞台?我尝试过将set :stage, :production放入deploy.rb中,但这不起作用,它给出了错误:where production is a stage you have defined
我现在只有一个阶段,所以我希望能够只运行cap deploy并让它在默认情况下执行
部署后的最后一段时间,我必须将ssh放到服务器中,并在touch tmp/restart.txt中输入current directory。我尝试了不同的方式重新启动乘客,但没有什么对我有用。first attempt: task :restart do run "#{try_sudo} touch#{File.join(current_path,'tmp','restart.txt'