cake / app / webroot in different dirs

12 views
Skip to first unread message

SiVA_

unread,
Feb 28, 2009, 6:16:27 PM2/28/09
to fredistrano-discuss
HI,

So I'm finally getting things figured out with this sweet deployment
tool. My directory structure in subversion looks like this:

- cakephp
- app
- webroot

I have all three directories separated, because on the live server my
webroot is detached from the cake install. How would I go about
sending the updated files to the various locations on the live server,
after I do the export/sync in Fred? I thought of creating an "after
script" in Fred, that would tar up the contents of each dir
separately, then extract them into their appropriate destination dirs.
Is there a better way to do it?

Can I instruct Fred to synchronize sub directories off of svn into
different dirs, or ??

Thanks

fred

unread,
Mar 1, 2009, 3:34:53 AM3/1/09
to fredistrano-discuss
Hi,

I am not sure to understand ... but

if you svn repository structure is as below for example :

http://myRepository/myProject/trunk
l_ _cakephp
l_ _app
l_ _webroot

and on the live server :

/home/user/xxxx/
l_ _cakephp
l_ _app
l_ _webroot

you have to configure your project in Fredistrano with these
settings :

SVN url => http://myRepository/myProject/trunk
Project absolute path => /home/user/xxxx/

Fred
Message has been deleted

Justin Kennedy

unread,
Mar 1, 2009, 7:49:31 AM3/1/09
to fredistra...@googlegroups.com
Hi Fred,

The svn is correct but the live server is more like:

/opt/cakephp
/home/siva/projects/acme/app
/var/www/acme/ (this is webroot)

Cheers

--
Justin Kennedy
Maritime Source, Inc.
http://maritimesource.ca
506-645-1195 (c)
506-696-1564


-----Original Message-----
From: fred <fbo...@gmail.com>

Date: Sun, 1 Mar 2009 00:34:53
To: fredistrano-discuss<fredistra...@googlegroups.com>
Subject: Re: cake / app / webroot in different dirs

Yann Le Blevec

unread,
Mar 2, 2009, 12:01:16 PM3/2/09
to fredistra...@googlegroups.com
Hi,

Actually, you won't be able to tell natively Fredistrano to split the exported source code of a project into several target folders.

I would suggest you to create two different projects in fredistrano: one for cakePHP and another one for the rest of your application. It is likely that your application (app/webroot) will require frequent updates as opposed to the cakePHP core files.

As a consequence, fredistrano will output in /home/siva/projects/acme/ both the content of app and webroot. Then, I would use "after scripts" to rsync (or just copy) again the content /home/siva/projects/acme/
webroot with its real target /var/www/acme/. Don't move or delete /home/siva/projects/acme/webroot otherwise Fredistrano will have to export at each deployment the whole content of webroot (losing time....).

If you come up with a better solution, don't forget to share it with us.

Regards,

Yann
Reply all
Reply to author
Forward
0 new messages