- 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.
Thanks
Iain
Ok, I'll put that on the "to research" list. In the meantime ( ie
tonight! ) if I am deploying two cloned projects is it standard practice
to just give each one their own port number? Is that the right way to
keep gears apps separate?
Thanks
Iain
Thanks
Iain
What you're doing should be perfectly possibly. The project name
doesn't really play a part if you're not trying to install the project
twice from an egg.
When you say "But it doesn't seem to be working", do you have any more
info? My crystal ball is a little foggy. ;)
Lee
--
Lee McFadden
blog: http://www.splee.co.uk
work: http://fireflisystems.com
skype: fireflisystems
S'ok, got it going. i think I was having issues between browser cache,
apache restarts, and tg restarts.
Thanks for the info!
Sure am looking forward to python deployment getting easier!
Iain
I know I'm biased since I use TG every day, but I have no problems
deploying my apps. If there are problems with the docs on deployment
or issues which they just don't cover, a few comments on those pages
and/or some commentary here would be very helpful for future users.
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
Mmm, I personally had a lot of problems. But I think it's kind of a dumb
luck thing too because right now dependencies are sensitive. ( ie mysl
versions, python version, distro specific apache defaults, etc ) And
yet, I had such an easy time getting rolling on my home dev box.
Anyway, I do plan on writing a tutorial covering getting going on
ubuntu. It'll be good to get comments on that when it's done!
Iain
I mean, it the easiest way I know to have a dev version along with a
released version.
an example of repositoru could be :
projects => clients 1 => trunk (the good version)
=> branche (the dev version)
you set the svn props to avoid commiting the .pyc
when you want one or the other, you just make an export of the svn
repos (the dev one or the other).
I think you should really consider about something this way.
Hope this help (and I was not answering something stupid)
Nicolas
then move everything to svn, setuptools integration is great you can
have an egg named project_r50.egg project_r58.egg and so on, all you
need is to read a bit.
reinventing the wheel is only good went the current one is broken.
> Thanks
> Iain
>
>
>
>
> >
>