Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread frederic bollon

Hi JeremyL

You should give try to Fredistrano, http://code.google.com/p/fredistrano/.

It automates the export of your sources from a subversion repository
and synchronizes them with the content of a target directory. Several
manual tasks are also handled directly by the application during the
deployment: renaming of configuration files, modifying permissions...

Fred

On 24 oct, 22:36, JeremyL jeremylue...@gmail.com wrote:
 Can anyone point me to a good solid SVNdeploymenthowto for CakePHP
 and a live app? Something along the lines of how simple WordpPress
 explains it (http://codex.wordpress.org/Installing/
 Updating_WordPress_with_Subversion) but of course Cake has some
 additional complications since cake is only a framework and not the
 entire app.

 Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Sergio Pola

You must be aware in the checkout that the user who own the file is
apache if you run a php script.

On Oct 26, 3:28 am, frederic bollon fbol...@gmail.com wrote:
 Hi JeremyL

 You should give try to Fredistrano,http://code.google.com/p/fredistrano/.

 It automates the export of your sources from a subversion repository
 and synchronizes them with the content of a target directory. Several
 manual tasks are also handled directly by the application during the
 deployment: renaming of configuration files, modifying permissions...

 Fred

 On 24 oct, 22:36, JeremyL jeremylue...@gmail.com wrote:

  Can anyone point me to a good solid SVNdeploymenthowto for CakePHP
  and a live app? Something along the lines of how simple WordpPress
  explains it (http://codex.wordpress.org/Installing/
  Updating_WordPress_with_Subversion) but of course Cake has some
  additional complications since cake is only a framework and not the
  entire app.

  Thanks

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Jonathon Musters

Not if a server is running secure with suphp. Which runs code as the
user. Not apches set user




On 10/26/09, Sergio Pola sergio.pola.contre...@gmail.com wrote:

 You must be aware in the checkout that the user who own the file is
 apache if you run a php script.

 On Oct 26, 3:28 am, frederic bollon fbol...@gmail.com wrote:
 Hi JeremyL

 You should give try to Fredistrano,http://code.google.com/p/fredistrano/.

 It automates the export of your sources from a subversion repository
 and synchronizes them with the content of a target directory. Several
 manual tasks are also handled directly by the application during the
 deployment: renaming of configuration files, modifying permissions...

 Fred

 On 24 oct, 22:36, JeremyL jeremylue...@gmail.com wrote:

  Can anyone point me to a good solid SVNdeploymenthowto for CakePHP
  and a live app? Something along the lines of how simple WordpPress
  explains it (http://codex.wordpress.org/Installing/
  Updating_WordPress_with_Subversion) but of course Cake has some
  additional complications since cake is only a framework and not the
  entire app.

  Thanks

 


-- 
Sent from my mobile device

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-26 Thread Jon Bennett

Hi frederic,

 You should give try to Fredistrano, http://code.google.com/p/fredistrano/.

 It automates the export of your sources from a subversion repository
 and synchronizes them with the content of a target directory. Several
 manual tasks are also handled directly by the application during the
 deployment: renaming of configuration files, modifying permissions...

Looks interesting, does appear like more work than simply SSHing into
your server and svn co/up/switch'ing, if you add hostname switches in
the right place, you only ever need one set of deployed files, and
need not worry about installing/setting up Fredistrano on every box
you deploy work to.

j

-- 
jon bennett - www.jben.net - blog.jben.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-25 Thread David Roda
What do you need to modify in the bootstrap.php?

On Sun, Oct 25, 2009 at 5:03 AM, Jon Bennett jmbenn...@gmail.com wrote:


 Hi Jeremy,

  Can anyone point me to a good solid SVN deployment howto for CakePHP
  and a live app? Something along the lines of how simple WordpPress
  explains it (http://codex.wordpress.org/Installing/
  Updating_WordPress_with_Subversion) but of course Cake has some
  additional complications since cake is only a framework and not the
  entire app.

 I do the following:

 * set svn:ignore on app/tmp/*
 * keep data separate from the app, so if you have uploads store these
 in a different location, say uploads.mydomain.co.uk
 * have switch statements in webroot/index, config/bootstrap,
 config/database so you can deploy to multiple places (local, test,
 staging, live) without modification. see my reply in the Dynamic
 Selection of Database config based on Debug level thread for more.

 Then all you need to do is svn co trunk (or a tag/release) to your
 server to deploy.

 hth

 jon

 --

 jon bennett - www.jben.net - blog.jben.net

 



-- 
David C. Roda
717-917-2169

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-25 Thread Jon Bennett

Hi David,

 What do you need to modify in the bootstrap.php?

I modify things like debug level, turn caching on. Here's what I put
in the other thread:

* webroot/index.php - to optionally change the location of the cake
libs, http://pastie.org/667873
* config/bootstrap.php - to override core settings such as debug
level, caching on/off etc, http://pastie.org/667875
* config/database.php - I create the class within the switch
statement, so only have the $default connection defined,
http://pastie.org/667872

hth

jon


-- 
jon bennett - www.jben.net - blog.jben.net

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-25 Thread Richard
Hey,

I have a CakePHP shell that does various things, though it integrates with
Git. The script checks out, applies database migrations (using Ruckusing),
and runs CakePHP unit tests. It does some other stuff, like backup databases
before the migrations are applied too.

This code is part of a proprietary system (see www.ugrworks.com, the core
product is built on CakePHP), but I'm happy to release the deployment code
into the public domain. Drop me a line if you're interested.

Cheers!
Richard

On Sat, Oct 24, 2009 at 9:36 PM, JeremyL jeremylue...@gmail.com wrote:


 Can anyone point me to a good solid SVN deployment howto for CakePHP
 and a live app? Something along the lines of how simple WordpPress
 explains it (http://codex.wordpress.org/Installing/
 Updating_WordPress_with_Subversion) but of course Cake has some
 additional complications since cake is only a framework and not the
 entire app.

 Thanks
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Good SVN Deployment Plan for CakePHP

2009-10-24 Thread JeremyL

Can anyone point me to a good solid SVN deployment howto for CakePHP
and a live app? Something along the lines of how simple WordpPress
explains it (http://codex.wordpress.org/Installing/
Updating_WordPress_with_Subversion) but of course Cake has some
additional complications since cake is only a framework and not the
entire app.

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Good SVN Deployment Plan for CakePHP

2009-10-24 Thread Sam Sherlock
I use git not svn but if you set up cake on your path then your app  cake
core are in different locations

then you can checkout (can't recall correct terminology - whatever updates
your copy of cake managed by svn)

and your worries are over

- S



2009/10/24 JeremyL jeremylue...@gmail.com


 Can anyone point me to a good solid SVN deployment howto for CakePHP
 and a live app? Something along the lines of how simple WordpPress
 explains it (http://codex.wordpress.org/Installing/
 Updating_WordPress_with_Subversion) but of course Cake has some
 additional complications since cake is only a framework and not the
 entire app.

 Thanks
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---