On 30/10/10 13:48, kei wrote:
>
> i know that the following bash commands work when i am inside the
> server
>
> cp /home/deploy/staging/database.php /var/www/staging/current/app/
> config/
> cp /home/deploy/staging/bootstrap.local.php /var/www/staging/current/
> app/config/
>
> but strangely when i try to run it as a task after my deploy:default
> it did not copy the files over.
"current" only points to the most recent deploy after the symlink has
been created.
To copy something to the current deploy before the symlink is created
you need to use the release_path variable. eg.:
upload("/path/to/database.php", "#{release_path}/app/config/")
R.
--
"Feed that ego and you starve the soul" - Colonel J.D. Wilkes
http://www.theshackshakers.com/
--
* 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