#{release_path} should probably be #{latest_release}

On Jul 26, 2013, at 6:37 PM, João Pereira <joaomiguel.pere...@gmail.com> wrote:

> have this deploy.rb
> after 'deploy:update_code', 'deploy:symlink_db', 'deploy:symlink_email'
> after 'deploy:setup', 'setup:create_db_configuration', 
> 'setup:create_email_configuration'
> 
> 
> namespace :deploy do
>   desc "Symlinks the email.yml"
>   task :symlink_email, :roles => :app do
>     puts "##Sybolic Link the email.yml"
>     run "ln -nfs #{deploy_to}/shared/config/email.yml 
> #{release_path}/config/email.yml"
>   end
> 
> desc "Symlinks the database.yml"
>   task :symlink_db, :roles => :app do
>     puts "##Sybolic Link the database.yml"
>     run "ln -nfs #{deploy_to}/shared/config/database.yml 
> #{release_path}/config/database.yml"
>   end
> But when I deploy, after the deploy:update_code it starts with
> 
> 2013-07-27 03:30:30 executing `deploy:assets:symlink'
> then
> 
> 2013-07-27 03:30:32 executing `deploy:assets:precompile'
> And when execution
> 
> executing "cd -- /home/ubuntu/deployments/saleshub/releases/20130727013023 && 
> RAILS_ENV=production RAILS_GROUPS=assets rake assets:precompile"
> It fails, because the symbolic links were not created yet. How do I make sure 
> the my tasks to create the symlinks before compiling the assets?
> 
> -- 
> -- 
> * You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> * To post to this group, send email to capistrano@googlegroups.com
> * To unsubscribe from this group, send email to 
> capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/capistrano?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "Capistrano" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to capistrano+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to capistrano@googlegroups.com
* To unsubscribe from this group, send email to 
capistrano+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to capistrano+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to