Capistrano and Media Temple (gs) - Grid Server

57 views
Skip to first unread message

John Kopanas

unread,
Oct 24, 2006, 1:36:42 PM10/24/06
to capis...@googlegroups.com
Hey Everyone,

According to the comments section in this blog post MediaTemple has
their own capistrano deploy script:

http://blog.vixiom.com/2006/10/12/media-temple-tames-the-beast-new-ruby-on-rails-hosting-service-with-mongrel/

The problem is that this deploy script refers to a file called
'mt-capistrano' that I can't find anywhere.

Does anyone have any suggestions for deploying to MediaTemple? With
the way the container is setup it looks like I can't use my
traditional deployment script.

Thanks :)

--
John Kopanas
jo...@kopanas.com

http://www.kopanas.com
http://www.cusec.net
http://www.soen.info

winkdev

unread,
Nov 8, 2006, 7:36:54 AM11/8/06
to Capistrano
I believe mt-capistrano adds some additional functions specific to the
Grid Server setup. To install:

gem install mt-capistrano --source=http://gems.mediatemple.net/

Micah

Arjen

unread,
Nov 28, 2006, 9:45:54 AM11/28/06
to Capistrano
I can't seem to get it to work. Capistrano keeps failing on:
svn: invalid option: --limit

which is triggered by line 23 in subversion.rb (which in turn calls
svn_log on line 81), which uses:

`svn log -q --limit 1 #{path}`

Running "svn --version" tells me MediaTemple is running Subversion
1.1.4. I doubt if this version supports the limit switch for the "svn
log" command (how to tell?). Runnning this command locally runs without
problems...

Any ideas to resolve this? It'll be highly appreciated, since I'm
stuck! :)

PS: Why isn't Capistrano using "svn info" to determine the revision
number in the first place? Seems just a tad cleaner to me, but then
again, I'm just a n00b. :)

Borja Martín

unread,
Nov 28, 2006, 10:15:39 AM11/28/06
to capis...@googlegroups.com
I had the same error and solved it by upgrading my subversion
installation to the latest version

bye!

--
/**
* dagi3d v4 | http://dagi3d.net
*/

Arjen

unread,
Nov 28, 2006, 10:19:00 AM11/28/06
to Capistrano

Borja Martín wrote:
> I had the same error and solved it by upgrading my subversion
> installation to the latest version
>

And how did you upgrade your Subversion on MediaTemple?
Judging from MediaTemple's deployment recipe on
http://gems.mediatemple.net/deploy.rb
they DO want me to use Subversion on the GridServer.

yesteray

unread,
Nov 28, 2006, 11:41:41 AM11/28/06
to Capistrano

Arjen wrote:
> I can't seem to get it to work. Capistrano keeps failing on:
> svn: invalid option: --limit
>
> which is triggered by line 23 in subversion.rb (which in turn calls
> svn_log on line 81), which uses:
>
> `svn log -q --limit 1 #{path}`
>
> Running "svn --version" tells me MediaTemple is running Subversion
> 1.1.4. I doubt if this version supports the limit switch for the "svn
> log" command (how to tell?). Runnning this command locally runs without
> problems...
>
> Any ideas to resolve this? It'll be highly appreciated, since I'm
> stuck! :)

You seem to have plenty of ideas!

If you remove the "--limit 1" part of the svn_log command, you'll get
the same result, you just get it more slowly.

If you want to use svn info, you could modify the match to match the
revision from the output. A minimally invasive change would add a new
svn_info method:

def svn_info(path)
`svn info #{path}`
end

and then modify the match on line 23 of subversion.rb

match = svn_info(".").scan(/Revision: (\d+)/).first or

--

Ray

Craig Morris

unread,
Mar 19, 2014, 8:20:08 PM3/19/14
to capis...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages