On the deploy:setup status, I'm trying to link everything on the
remote repositories to the correct place in the servers (I'll have to
setup rather big group of servers)
My problem is that I want to link all wars on one repo dir to the
destination, and I'm doing this.
cmd = "ln -sf #{deploy_to}/current/jboss/wars/* #{jboss_home}/
server/default/deploy"
sudo cmd, :as => "jboss"
cmd = "ln -sf #{deploy_to}/current/jboss/configs/$CAPISTRANO:HOST
$/* #{jboss_home}/server/default/deploy"
sudo cmd, :as => "jboss"
To my surprise, on the remote site I end up having a file called *
pointing to the origin dir * file. Like this:
lrwxrwxrwx 1 jboss jboss 37 Feb 22 12:52 * -> /u/apps/nuroaweb/
current/jboss/wars/*
lrwxrwxrwx 1 jboss jboss 47 Feb 22 12:52 nibbler -> /u/apps/
nuroaweb/current/jboss/configs/nibbler/
So looks like remote shell is not expanded. I thought capistrano uses /
bin/sh by default, so this shoud work no?
What I have to do to achieve this?
I can create a shell script to do it, but looks more ugly.
--
* 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