Proper Usage Questions

3 views
Skip to first unread message

Brendon Kozlowski

unread,
Dec 29, 2009, 1:00:13 PM12/29/09
to fredistrano-discuss
I'll be using Fredistrano on a different site with different
requirements than what I'm used to (simple one way pushes, no on-the-
fly alteration of files necessary).

I have a few directories that have content generated only on the
production server (user uploaded) and wish to not overwrite any files
within that folder (but perhaps create new subfolders if they exist?)
during Fredistrano's rsync process. (1) Fredistrano's deploy.php can
contain a list of folders/files that shouldn't be sync'd, but what if
I want to sync subfolders but not files?

This site will also be a CakePHP site and I would like to never alter
the webroot's index.php file, .htaccess file, or the app's config/
database.php file as they will be different. Therefore...

I know there's the DEV/PRD option, but I also see in the PDF
documentation ways to use Fredistrano's beforeScript/afterScript
callbacks. As my current site within the repository has
"database.php" instead of "database.dev.php && database.prd.php"; (3)
is it possible to use the beforeScript to manage the changes
automatically instead?

Also, (3) I am curious to know if there is any news on "Wily Ariane"?

Thanks!

fred

unread,
Dec 30, 2009, 5:15:38 AM12/30/09
to fredistrano-discuss
Hi brendon,

(1) the variable $exclude in deploy.php file will be use by the rsync
exclude option, so for specific needs see the rsync documentation, may
be in your case you can try something like '/yourPath/*.*' (never
tested)

(2) in beforeScript/afterScript you can execute your own scripts, you
can find examples here => http://code.google.com/p/fredistrano/wiki/DeploymentScripts

(3) We do not have much time to give Fredistrano right now, I hope
that we will be able to release in January or February.
Meanwhile you can try the trunk version http://fredistrano.googlecode.com/svn/trunk/
(for testing only).
You can find, the last issues before "Willy Ariane"
http://code.google.com/p/fredistrano/issues/list?can=2&q=milestone=Release1.0&colspec=ID%20Type%20Status%20Priority%20Milestone%20Owner%20Summary

regards

Fred

Brendon Kozlowski

unread,
Dec 31, 2009, 11:41:43 AM12/31/09
to fredistrano-discuss
Thank you very much for your time and your response, Fred. It is very
much appreciated!

On Dec 30, 5:15 am, fred <fbol...@gmail.com> wrote:
> Hi brendon,
>
> (1) the variable $exclude in deploy.php file will be use by the rsync
> exclude option, so for specific needs see the rsync documentation, may
> be in your case you can try something like '/yourPath/*.*' (never
> tested)
>
> (2) in beforeScript/afterScript you can execute your own scripts, you
> can find examples here =>  http://code.google.com/p/fredistrano/wiki/DeploymentScripts
>
> (3) We do not have much time to give Fredistrano right now, I hope
> that we will be able to release in January or February.

> Meanwhile you can try the trunk versionhttp://fredistrano.googlecode.com/svn/trunk/
> (for testing only).
> You can find, the last issues before "Willy Ariane"http://code.google.com/p/fredistrano/issues/list?can=2&q=milestone=Re...


>
> regards
>
> Fred
>
> On 29 déc, 19:00, Brendon Kozlowski <Brendon...@hotmail.com> wrote:
>
>
>
> > I'll be using Fredistrano on a different site with different
> > requirements than what I'm used to (simple one way pushes, no on-the-
> > fly alteration of files necessary).
>
> > I have a few directories that have content generated only on the
> > production server (user uploaded) and wish to not overwrite any files
> > within that folder (but perhaps create new subfolders if they exist?)
> > during Fredistrano's rsync process.  (1) Fredistrano's deploy.php can
> > contain a list of folders/files that shouldn't be sync'd, but what if
> > I want to sync subfolders but not files?
>
> > This site will also be a CakePHP site and I would like to never alter
> > the webroot's index.php file, .htaccess file, or the app's config/
> > database.php file as they will be different. Therefore...
>
> > I know there's the DEV/PRD option, but I also see in the PDF
> > documentation ways to use Fredistrano's beforeScript/afterScript
> > callbacks.  As my current site within the repository has
> > "database.php" instead of "database.dev.php && database.prd.php"; (3)
> > is it possible to use the beforeScript to manage the changes
> > automatically instead?
>
> > Also, (3) I am curious to know if there is any news on "Wily Ariane"?
>

> > Thanks!- Hide quoted text -
>
> - Show quoted text -

Brendon Kozlowski

unread,
Jan 19, 2010, 4:00:18 PM1/19/10
to fredistrano-discuss
I think I have everything setup as needed. I find it a bit cumbersome
to have to version things in the repository when only small changes
are needed; and adding fredistrano's settings to the repository sort
of seems redundant when it could potentially run directly from the
Fredistrano installation per project (or is it possible to do this in
fredistrano's app/config/config.php file with project_id specific
settings?).

I do have a question though... According to the following post by
euphrate_ylb:
http://groups.google.com/group/fredistrano-discuss/msg/2a8b1beb0cc230e4

It's possible to support multiple extensions per project. However,
there were two portions I was unclear on:
1. "Then, each instance of fredistrano must be configured to handle
only a given extension."

Each instance? Surely that doesn't mean individual installations of
Fredistrano as that sort of defeats the purpose of a centralized
deployment tool?

2. $config['FileSystem'] = array(
...,
'renameExt' => 'xxx' // In our example
it may be tst, dev or prd
);

Is 'renameExt' at the first level index to the FileSystem array?
i.e.: $config['FileSystem']['renameExt'] ? Also, how would we define
to Fredistrano what each extension relates to if this is Fredistrano's
main app/config/config.php file?

On Dec 31 2009, 11:41 am, Brendon Kozlowski <Brendon...@hotmail.com>
wrote:

Reply all
Reply to author
Forward
0 new messages