On 06/12/06, iain duncan <[EMAIL PROTECTED]> wrote:
>
> I want to write a bash script to clone a project so that I can keep a
> dev version of each clients project on my server and then very quickly
> replace the current one when I need to. Seems to me I can either:
>
> - use tg-admin quickstart with the new name and then copy over all
> relevant files
> - copy all files and rename them and references to the package name with
> grep/perl
> - use the exact same name isolated in a different directory ( sounds
> dangerous to me ... )
>
> Wondering what others have found to be the best solution for that before
> I start bashing. If I can come up with something half way good I'll
> stick it on the wiki for improvements.
>

I wouldn't say it's the best solution, but I've just been copying the
project folder and appending "_dev" or "_backup" to the folder name.
Change the port number in the config file (or even use prod.cfg for
one and dev.cfg for the other), and just run it.  In itself it doesn't
cause any problems.

Some problems that can arise are:

- messing around on the command line and forgetting which directory you're in :(
- copying an sqlite database while something is writing to it can corrupt it.
- Having both sites connecting to the same database can cause problems
when you test a form or such, and enter junk test data which then
shows up on the live site.
- Forgetting to change the port number, in which case the second site
will complain that the port isn't free.

So basically, the main danger is your (my!) own stupidity.  Other than
that it should work fine.

Ed

--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to