Rails app in a subfolder of a git clone - possible ?

31 views
Skip to first unread message

Thibaut Barrère

unread,
Nov 2, 2009, 10:56:45 AM11/2/09
to Capistrano
Hi,

is there a clean way to deploy a rails app that would not sit in the
root of the git repository, but in a sub-folder instead ?

any hint will be most welcome,

Thibaut
--
http://www.learnivore.com

Rafael G.

unread,
Nov 2, 2009, 11:38:38 AM11/2/09
to capis...@googlegroups.com
Hi Thibaut,

In this moment capistrano can't do it out of the box but you can do
it with this patch:


https://capistrano.lighthouseapp.com/projects/8716-capistrano/tickets/91-capistrano-should-support-non-root-directories#ticket-91-12

Perhaps, in the next release :)
--
Rafa

Thibaut Barrère

unread,
Nov 3, 2009, 3:28:32 AM11/3/09
to Capistrano
Hi Rafael,

thanks for the patch and answer - I'll try your patch.

Yep I guess this could be worthwhile to have this inside Capistrano
directly.

thanks again!

Thibaut
--
http://www.learnivore.com

Lee Hambley

unread,
Nov 3, 2009, 5:25:25 AM11/3/09
to capis...@googlegroups.com
Thibaut,

We didn't accept this patch because it only works when using the remote-cache deployment strategy:– and the patch is pretty well documented for those who need it!

-- Lee Hambley

Twitter: @leehambley | @capistranorb
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1


2009/11/3 Thibaut Barrère <thibaut...@gmail.com>

Thibaut Barrère

unread,
Nov 3, 2009, 5:46:44 AM11/3/09
to Capistrano
Hi Lee,

> We didn't accept this patch because it only works when using the
> remote-cache deployment strategy:– and the patch is pretty well documented
> for those who need it!

no worries - I understand that :)

In case it helps, I've seen this use-case arise two times already,
mostly because we wanted to keep 2 or 3 very related projects under a
single github private repository, instead of having 3 repositories to
handle and pay for.

cheers,

Thibaut
--
http://www.learnivore.com

Lee Hambley

unread,
Nov 3, 2009, 5:51:28 AM11/3/09
to capis...@googlegroups.com
Thibaut, you have a valid point -- maybe we can take some time to look into this more thoroughly – the truth of the matter is that the majority of people use this remote-cache anyway, so it works perfectly for them; -- would you mind adding your thoughts about this common usecase to the lighthosue ticket?

Good luck with the patch; maybe you convinced us to merge it now :)


-- Lee Hambley

Twitter: @leehambley | @capistranorb
Blog: http://lee.hambley.name/
Working with Rails: http://is.gd/1s5W1


2009/11/3 Thibaut Barrère <thibaut...@gmail.com>

Reply all
Reply to author
Forward
0 new messages