can you deploy a specified version of code in rails?

395 views
Skip to first unread message

Dorren

unread,
Sep 17, 2007, 1:34:55 PM9/17/07
to Capistrano
can you deploy code with given svn version? I mean add svn version as
command line argument. something like "cap deploy 123" would be nice.

I know you can change repository path to tagged releases, but i wonder
is there way so i don't have to change config/deploy.rb file in rails.

thanks.

Jamis Buck

unread,
Sep 17, 2007, 4:20:18 PM9/17/07
to capis...@googlegroups.com
If you want to push a tag, you have to change the :repository URL
(since Subversion doesn't really support tags--you actually push from
a different path in the repository instead). If you want to push a
specific revision number from the current repository, you just set
the :revision variable.

You can set either of these from the command-line:

cap -s repository=http://blah.blah.blah deploy
cap -s revision=123 deploy

- Jamis

Dorren

unread,
Sep 17, 2007, 4:29:36 PM9/17/07
to Capistrano
thanks.
Dorren
Reply all
Reply to author
Forward
0 new messages