I have deployed (in Webfaction) a development environment for askbot in which I commit everyday's updates from both askbot's repo and few local environments. I want now to create two more environments, a testing one and of course the production one. The three environments will have different source code and different databases, running in the same server in domains like dev.server.com, test.server.com and www.server.com.
I would do this easily for the other 2 environments by following the same instructions but I see that in lib/python2.6 there is a askbot-0.7.40-py2.6.egg folder, so I was wondering that if I install another 2 instances they will override the same folder.
Is this true? How can I prevent this, in order to install three separate environments.
Thanks a lot
The solution for this is just to use virtual environments, so that each one is isolated from the others. To do this, there is a tool virtualenv, easily installed by easy_install virtualenv, and even more easily used by virtualenv <projectNameDir>. This way, nothing is stored on the common site-packages, and files under <projectNameDir> have their own site-packages and are isolated, so you can have many environments in the same server.
Note: When you are inside <projectNameDir> and you run your commands like 'python manegy.py ...' make sure to use python (and any other tools) found at bin folder of your virtual environment. So you will end up running commands like
../bin/python manage.py syncdb
Enjoy!
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2012-04-08 08:12:42 -0500
Seen: 78 times
Last updated: Apr 21 '12
New install, exception when registering
mutliple instance of askbot in differents directories on the same virtual host ?
Need step by step installation procedure in WebFaction
can I run askbot on tornado instead of django
How to roll-back a setup.py install
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.