Thursday, November 26, 2009

RE: Development / Server question

Basic idea is I have a few dummy accounts set up in my live environment, and use them in my development area to test out add / delete / records or what not for new features that will be added to the site over time rather than build on the production incise there are errors or whatnot you don't want to crash the live version.
 
Just looking to see what would be the best approach to the idea.


From: Dave [mailto:davidcroda@gmail.com]
Sent: November-26-09 9:19 PM
To: cake-php@googlegroups.com
Subject: Re: Development / Server question

What's wrong with two different environments?

I have a staging environment where I commit my changes to show clients (my server), and a local environment where I edit and test from (my pc).

The only problem I see you having is that you want your local database to reflect changes made on your production database.  This can be accomplished relatively painlessly by setting up your local database as a slave to the master.

I would also recommend setting up some sort of revision management so you don't have to remember which files you've modified when it comes time to migrate to the production server.  One thing to keep in mind with this is that you should be sure to not include (svn ignore) the webroot/index.php if the cakephp core is located in a different place on your production server.  Then you can just do an "svn update" to update your production to the latest version.

On Thu, Nov 26, 2009 at 7:37 PM, Dave <make.cake.bake@gmail.com> wrote:
I am building an app that will never be finished....i mean it will
always be constantly added to and add new features or what not.
Obviously for each new addition i do not want to work on the live
public site, so I was wondering what the best approach would be?

I was thinking:
(all on the same server)
remove admin_ functions completely from the live site,
run cake _admin from a dev folder which is where all new production /
testing takes place,
dev folder would use the same db connection so i have access to the
live data to use during testing,

this way i have a live public production version and a behind the
scenes "as if it was live"  development version and each time a
completed new section is built and tested i can just copy the new
files into the live site structure.


Thanks,

Dave

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.709 / Virus Database: 270.14.83/2526 - Release Date: 11/26/09 16:12:00

No comments: