Am 04.07.2010 um 16:19 schrieb Andrea Crotti:



On 4 Lug, 15:57, "Diez B. Roggisch" <[email protected]> wrote:
I don't understand why you care about zipped or unzipped eggs, and
about "original code". This is deployment. You don't work with code
there.

If the given recipe works for you, it's fine. I don't see any reason
for any differences betrwwen tg1and 2 deployment-wise.

Diez


Ok but why?
I mean I'm used to work on code from different places...
Maybe the production environment is a bit different and I can only
test some things there.


Nobody said you can't use a repository as deployment base. We do so (with SVN, but that's no principal difference).

However, we next to never *work* or even debug on production. It's important to have a setup where you can test out pretty much anything without the need to be on production. So working with an EGG would be ok for us either.


If I can only deploy in this way then there's no way that I can simply
modify the code there and push it to my git repository.

No, you can not only deploy like that. As you have found out by yourself already.


Anyway I found how to do, this should work on a remote machine

  - create a virtualenv with *virtualenv -p <path> --no-site-packages
env*
  - cd tgenv && source bin/activate
  - easy_install -i http://www.turbogears.org/2.0/downloads/current/index
tg.devtools
  - *git pull <proj.git>
  - *cd proj && python setup.py develop* (install all the other
libraries)

Well, here you can get into troubles. As I said earlier, relying on external resources for installing might be a problem. While TG2 index is better than PyPI, it still might evolve over time & put you in a situation where your code might not work because of newer packages being pulled from the net. Not to speak of lack of connectivity or maybe even security considerations.

Diez

--
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