Capistrano Multistage deploying to wrong directory

前端 未结 4 804
旧时难觅i
旧时难觅i 2020-12-29 08:47

Im having some problems with my capistrano setup after updating my gems lately. I have a multistage setup with a production and staging setup.

/config/deploy.rb

4条回答
  •  天命终不由人
    2020-12-29 09:26

    I eventually solved this by adding the following to my deploy/production.rb and testing.rb

    set(:deploy_to)         { "/var/www/#{application}/live" }
    set(:releases_path)     { File.join(deploy_to, version_dir) }
    set(:shared_path)       { File.join(deploy_to, shared_dir) }
    set(:current_path)      { File.join(deploy_to, current_dir) }
    set(:release_path)      { File.join(releases_path, release_name) }
    

提交回复
热议问题