Yeah, but it's there! Refreshed my remote server and it's still there.
This is my deploy.rb part:
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch
#{File.join(current_path,'tmp','restart.txt')}"
end
after "deploy:update_code", :link_production_db, 'dragonfly:symlink'
end
desc "Link database.yml from shared path"
task :link_production_db do
run "ln -nfs #{deploy_to}/#{shared_dir}/config/database.yml
#{release_path}/config/database.yml"
run "ln -nfs #{deploy_to}/#{shared_dir}/config/email.yml
#{release_path}/config/email.yml"
end
And database.yml and email.yml are in /shared/config folder as they
have always been.
But look at the Capistrano output:
triggering after callbacks for `deploy:update_code'
* executing `deploy:assets:precompile'
* executing "cd ~/rails/releases/20120202183436 && bundle exec rake
RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
It does not mention the symlink commands. It directly executes the
Bundle command. I cannot remember it normally does.
On 2 feb, 19:24, Greg Akins <[email protected]> wrote:
> On Thu, Feb 2, 2012 at 1:20 PM, javinto <[email protected]> wrote:
> > *** [err :: ] rake aborted!
> > *** [err :: No such file or directory - /var/www/vhosts/server/rails/
> > releases/20120202180855/config/database.yml
>
> This may not be the symlink, but that the database.yml isn't deployed,
> and needs to be copied manually from an older version on the server,
> or from your own machine.
>
> Your situation may differ, but I use capistrano to deploy from the
> SCM, so if it's not there, it's not going to make it to your server.
>
> --
> Greg Akinshttp://twitter.com/akinsgre
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.