Symlink for deploy is not linking the public and shared directory.

14 views
Skip to first unread message

Lei

unread,
Jul 23, 2007, 3:35:16 PM7/23/07
to Capistrano
Hi,

The Symlink function in cap 2.0 is not linking the public and shared
directory.

on line 197 of /usr/lib/ruby/gems/1.8/gems/capistrano-2.0.0/lib/
capistrano/recipes/deploy.rb

Are those links handled elsewhere?

Lei

Jamis Buck

unread,
Jul 23, 2007, 3:44:23 PM7/23/07
to capis...@googlegroups.com
Yes, the deploy:symlink task _only_ adds the current symlink. The
other symlinks are handled in deploy:finalize_update.

- Jamis

Lei Sun

unread,
Jul 23, 2007, 3:47:45 PM7/23/07
to Capistrano
Oh, also, spinner is not there any more for the project that are generated by the latest rails.

  * executing `deploy:start'
  * executing "sh -c 'cd /home/lsun828/taogule.com/current && nohup script/spin'"

This returns an error, since there is no spin script. (I am trying to run "cap deploy:cold")

Lei

On 7/23/07, Lei < lei...@gmail.com> wrote:

Jamis Buck

unread,
Jul 23, 2007, 4:04:55 PM7/23/07
to capis...@googlegroups.com
Yes, a spin script is the recommended way to "spin up" your app from a
cold start. Please read through
http://www.capify.org/getting-started/rails for more info on using
cap2 with a rails app. Hopefully that will clarify some of these
issues.

- Jamis

Graeme Mathieson

unread,
Jul 23, 2007, 4:24:10 PM7/23/07
to capis...@googlegroups.com
Hi,

FWIW, I got bored repeating myself, creating spin scripts which were
a duplication of what was already in my capistrano configuration, so
I now autogenerate them with:

http://svn.rubaidh.com/plugins/trunk/rubaidh_platform/recipes/rubaidh/
deploy/spinner.rb

It's not going to suit everyone, but it works well for me.

Cheers,

Graeme.

--
Graeme Mathieson

Rubaidh Ltd: Scottish for Ruby on Rails <http://www.rubaidh.com/>

Personal blog: <http://woss.name/>

Rubaidh Ltd is a company registered in Scotland with registration
number SC297029. The registered address is:

12d Monktonhall Terrace
Musselburgh
East Lothian. EH21 6ER
United Kingdom


Lei Sun

unread,
Jul 23, 2007, 5:49:58 PM7/23/07
to capis...@googlegroups.com
Thanks, James. That was very helpful!

Great Day!
Reply all
Reply to author
Forward
0 new messages