Re: Capistrano + PHP deployment
Cheers Chris for the help in pointing me to the right direction! That why I said earlier that Apache *remote* server should have *svn installed* and module svn enabled. I probably expressed this idea in a misleading way: I did not wanted to say that Apache 2.2 was required, and I didn't specify that I was referring to the REMOTE server. Thanks again! Dan On 23 Set, 17:17, Chris Hartjes [EMAIL PROTECTED] wrote: On 9/23/07, cakeFreak [EMAIL PROTECTED] wrote: hey Chris, well the answer I get from my remote server is: - ** [out ::www.mySite.com] sh: line 1: svn: command not found - That's because you don't have Subversion installed on the remote server. 'svn' is the name of the command-line client for Subversion. Again, you don't need to do anything but install Subversion on the remote server. Don't need to upgrade Apache, to need to install any of those modules. Honest. -- Chris Hartjes Senior Developer Cake Development Corporationhttp://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
hey Chris, well the answer I get from my remote server is: - ** [out :: www.mySite.com] sh: line 1: svn: command not found - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/23/07, cakeFreak [EMAIL PROTECTED] wrote: hey Chris, well the answer I get from my remote server is: - ** [out :: www.mySite.com] sh: line 1: svn: command not found - That's because you don't have Subversion installed on the remote server. 'svn' is the name of the command-line client for Subversion. Again, you don't need to do anything but install Subversion on the remote server. Don't need to upgrade Apache, to need to install any of those modules. Honest. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
I know, was in a huge rush to get out last night hence it had to wait. Script is at http://bin.cakephp.org/view/1734552105 This is version 0.1 of a set of cake deploy tasks. Lots to do including: 1. handling rollback if the transaction fails; 2. deleting the app_for_deletion dir if the transaction succeeds; 3. abstracting out some of the tasks, e.g. detecting if an svn_username or svn_password is set and using the appropriate commands. Let me knwo what people think or of any improvements that should be included. Ian On Sep 22, 3:21 am, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 9/22/07, ianh [EMAIL PROTECTED] wrote: capistrano and wrote a simple deployment script for an app that: 1. archives the current version as a tar file 2. exports the latest version from SVN 3. sets the permissions on the tmp folder; and now you should share it :) Tarique -- = Cheesecake-Photoblog:http://cheesecake-photoblog.org PHP for E-Biz:http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
Just a small note that might be usefull to somebody: I tried Chris recepy, but I didn't have my Apache live server (not the locale, on my Windows machine) configured with subversion. In order to use Chris recepy you should compile your Apache 2.2 live server with subversion, and have the following modules enabled: - LoadModule dav_module modules/mod_dav.so LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so - Please correct me if I'm wrong! Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/22/07, cakeFreak [EMAIL PROTECTED] wrote: Just a small note that might be usefull to somebody: I tried Chris recepy, but I didn't have my Apache live server (not the locale, on my Windows machine) configured with subversion. In order to use Chris recepy you should compile your Apache 2.2 live server with subversion, and have the following modules enabled: Actually, I didn't need to do any of that stuff to get it to work. All you need is the SVN client running on the remote server. The server that hosts the web site that I deploy to using Capistrano doesn't have any of the dav or authz_svn stuff installed. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
Hep Chris, but as you pointed out you need SVN client running on the remote server. That, tell me if I'm wrong, means: LoadModule dav_svn_module modules/mod_dav_svn.so installed on your remote apache Server. On 22 Set, 17:02, Chris Hartjes [EMAIL PROTECTED] wrote: On 9/22/07, cakeFreak [EMAIL PROTECTED] wrote: Just a small note that might be usefull to somebody: I tried Chris recepy, but I didn't have my Apache live server (not the locale, on my Windows machine) configured with subversion. In order to use Chris recepy you should compile your Apache 2.2 live server with subversion, and have the following modules enabled: Actually, I didn't need to do any of that stuff to get it to work. All you need is the SVN client running on the remote server. The server that hosts the web site that I deploy to using Capistrano doesn't have any of the dav or authz_svn stuff installed. -- Chris Hartjes Senior Developer Cake Development Corporationhttp://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/22/07, cakeFreak [EMAIL PROTECTED] wrote: Hep Chris, but as you pointed out you need SVN client running on the remote server. That, tell me if I'm wrong, means: LoadModule dav_svn_module modules/mod_dav_svn.so installed on your remote apache Server. Um, no. You just need the commandline subversion stuff installed. No Apache needed. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Capistrano + PHP deployment
Hey guys, I read throught the *Automated PHP Deployment With Capistrano* tutorial = http://www.simplisticcomplexity.com/2006/8/16/automated-php-deployment-with-capistrano but it seems outdated. Does anyone has any FRESH suggestion for using Capistrano for PHP projects? Cheers in advance Dan PS: I found this post in the cAKe google Group, but dunno why I could post there http://groups.google.com/group/cake-php/browse_frm/thread/2dc5fb67855fb3e9/44f4b5fcf42c3cfc?lnk=gstq=Capistranornum=1#44f4b5fcf42c3cfc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/21/07, cakeFreak [EMAIL PROTECTED] wrote: Hey guys, I read throught the *Automated PHP Deployment With Capistrano* tutorial = http://www.simplisticcomplexity.com/2006/8/16/automated-php-deployment-with-capistrano but it seems outdated. In what way do you think it's outdated? I'm using Capistrano to deploy my CakePHP app and have actually found that the newer version of Capistrano makes it even easier to do it, reducing the need for the previously hackish method of needing a Rails app in place to do deployment. I created a deploy.rb file that exports my code out of SVN, and it would be dead simple to add features to it to move the old one out of the way or to unroll any changes I had made. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/21/07, Christian Winther [EMAIL PROTECTED] wrote: Do share ? :) +1 Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/21/07, Dr. Tarique Sani [EMAIL PROTECTED] wrote: On 9/21/07, Christian Winther [EMAIL PROTECTED] wrote: Do share ? :) +1 Okay, okay. http://www.littlehart.net/atthekeyboard/2007/09/21/deploying-cakephp-applications-using-capistrano/ -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
Hey Chris, cheers for sharing! I thought it was not updated 'cause I tried to follow the tutorial and it didn't work for me. + I'm new to capistrano one question: I have all my php projects in C:\\www, while I installed all Ruby + Capistrano stuff in C:\\ruby In order to give the recepy to Capistrano, should I move ruby projects to www? Cheers dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/21/07, cakeFreak [EMAIL PROTECTED] wrote: Hey Chris, cheers for sharing! I thought it was not updated 'cause I tried to follow the tutorial and it didn't work for me. + I'm new to capistrano one question: I have all my php projects in C:\\www, while I installed all Ruby + Capistrano stuff in C:\\ruby In order to give the recepy to Capistrano, should I move ruby projects to www? Well, given that Cap 2.0 doesn't seem to care where you have your deployment file, since you can load it with 'cap -f path/to/your/deployment/file' I don't think it matters in the least. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
Suitably inspired and with absolutely no ruby experience whatsoever (how hard could it be?!) I just sat down, installed ruby and capistrano and wrote a simple deployment script for an app that: 1. archives the current version as a tar file 2. exports the latest version from SVN 3. sets the permissions on the tmp folder; Now if I can just learn how to tell it to make me a cup of tea, I'll be laughing. 100% recommend people try Capistrano out. Ian On Sep 21, 3:57 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On 9/21/07, cakeFreak [EMAIL PROTECTED] wrote: Hey Chris, cheers for sharing! I thought it was not updated 'cause I tried to follow the tutorial and it didn't work for me. + I'm new to capistrano one question: I have all my php projects in C:\\www, while I installed all Ruby + Capistrano stuff in C:\\ruby In order to give the recepy to Capistrano, should I move ruby projects to www? Well, given that Cap 2.0 doesn't seem to care where you have your deployment file, since you can load it with 'cap -f path/to/your/deployment/file' I don't think it matters in the least. -- Chris Hartjes Senior Developer Cake Development Corporationhttp://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard -http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/21/07, ianh [EMAIL PROTECTED] wrote: Suitably inspired and with absolutely no ruby experience whatsoever (how hard could it be?!) I just sat down, installed ruby and capistrano and wrote a simple deployment script for an app that: 1. archives the current version as a tar file 2. exports the latest version from SVN 3. sets the permissions on the tmp folder; Now if I can just learn how to tell it to make me a cup of tea, I'll be laughing. 100% recommend people try Capistrano out. Ian Glad I could help someone out, as proper app deployment is sometimes the most difficult part of a project. -- Chris Hartjes Senior Developer Cake Development Corporation http://www.cakedevelopment.com My motto for 2007: Just build it, damnit! @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Capistrano + PHP deployment
On 9/22/07, ianh [EMAIL PROTECTED] wrote: capistrano and wrote a simple deployment script for an app that: 1. archives the current version as a tar file 2. exports the latest version from SVN 3. sets the permissions on the tmp folder; and now you should share it :) Tarique -- = Cheesecake-Photoblog: http://cheesecake-photoblog.org PHP for E-Biz: http://sanisoft.com = --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---