Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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"

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

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

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


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

Browse other questions tagged or ask your own question.