News for hackers. Stuff that matters.
Re:Deploy a website using git in Ubuntu by ceol on Monday June 04, 2012 @11:12PM (#4067128)
Great article!

My apologies if this is too off-topic, but it's interesting to see everyone's virtualenv setup. I normally have my project/site/app in my environment folder, so it looks something like:

    projectenv/
      bin/
      include/
      lib/
      project/
but I've also seen (as is the case in the OP's example):

    project/
      env/
      __init__.py
      database.py
      ...
or even having a separate folder for all environments:

    envs/
      env1/
      env2/
      ...
    project1/
      ...
    project2/
      ...
Would anyone say there's a "preferred" setup?
Re:Deploy a website using git in Ubuntu by pindi on Tuesday June 05, 2012 @02:18AM (#4067587)
I don't think there's a "right way", but I prefer the second format. In the first format, it's difficult to delete and recreate the entire virtualenv without also deleting your project files. And in the third, your environments are unnecessarily separated from their respective projects.