开发者

Capistrano multi stage deployment acts weird with bundler (path problems)

开发者 https://www.devze.com 2023-03-18 02:56 出处:网络
I have this really weird problem with capistrano/bundler and I am so stuck... I have two stages: production and staging

I have this really weird problem with capistrano/bundler and I am so stuck... I have two stages: production and staging when I execute ca开发者_开发技巧p production bundle:install it works well and runs this:

executing "cd /var/www/whatever/releases/20110506112617 && bundle install --gemfile /var/www/whatever/releases/20110506112617/Gemfile --path /var/www/whatever/shared/bundle --deployment --quiet --without development test"

everything fine, however when I run cap staging bundle:install I get this:

failed: "sh -c 'cd /var/www/staging.whatever/releases/shared && bundle install --gemfile /var/www/staging.whatever/releases/shared/Gemfile --path /var/www/staging.whatever/shared/bundle --deployment --quiet --without development test'" on whatever.org

It should not be

sh -c 'cd /var/www/staging.whatever/releases/shared && bundle install --gemfile /var/www/staging.whatever/releases/shared/Gemfile

but instead

sh -c 'cd /var/www/staging.whatever/releases/20110506112617 && bundle install --gemfile /var/www/staging.whatever/releases/20110506112617/Gemfile

something is wrong with the current_path and I don't know why... it always points to releases/shared which is totally wrong...

I run capistrano 2.6.0, any help is highly appreciated

-- Flo


Simply delete the "shared" release

rm -rf /var/www/staging.whatever/releases/shared
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号