Thanks, but seems not being the problem, as it did not fixed it. Was that 
for some reason the tasks were not being picked up after the 
"deploy_update:code"....

I can fix it like :

after 'deploy:finalize_update', 'deploy:symlink_db', 'deploy:symlink_email'

Thanks


On Saturday, July 27, 2013 4:40:29 PM UTC+2, dbray wrote:
>
> #{release_path} should probably be #{latest_release}
>
> On Jul 26, 2013, at 6:37 PM, João Pereira 
> <[email protected]<javascript:>> 
> 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 [email protected]<javascript:>
> * To unsubscribe from this group, send email to 
> [email protected] <javascript:> 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 [email protected] <javascript:>.
> 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 [email protected]
* To unsubscribe from this group, send email to 
[email protected] 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to