Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In my deploy.rb I have the following tasks:

namespace :deploy do
    task :start, :roles => :app do
        run "cd #{current_path} && bundle exec thin start -C config/thin.yml"
    end

    task :stop, :roles => :app do
        run "cd #{current_path} && bundle exec thin stop -C config/thin.yml"
    end

    task :restart, :roles => :app do
        run "cd #{current_path} && bundle exec thin restart -C config/thin.yml"
    end 
end

When I run cap deploy:restart via cap deploy recent code changes are not picked up. However, if I subsequently run cap deploy:stop and cap cap deploy:start all changes are picked up.

Why doesn't thin recognize the new current directory?

share|improve this question
    
I am having this same problem. Any solution? –  weexpectedTHIS Dec 28 '13 at 22:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.