First time here? Check out the FAQ!

startforum: where to deploy?

After two days of hell I managed to install Python 2.6 on CentOS, along with all the Askbot dependencies (I think).

I cloned the github repo into /var/www/html/askantimoon (askantimoon is my git project name). Most of the Askbot files are now in /var/www/html/askantimoon/askbot. Is it a good idea to put my repo in a directory which contains Web-accessible files?

I ran python2.6 develop and created the MySQL database. Now it seems I have to run another setup script called startforum (why? I already ran

When I run startforum, it asks me "where to deploy (in which directory?)". What does that mean? I thought Askbot was already in /var/www/site/askantimoon. And what is a good directory to choose here?

Tomasz P. Szynalski's avatar
Tomasz P. Szynalski
asked 2011-06-20 12:20:10 -0500
edit flag offensive 0 remove flag close merge delete


Centos in tougher, because you have to compile a few system dependencies. Ubuntu is much easier to work with.
Evgeny's avatar Evgeny (2011-06-20 12:22:27 -0500) edit
Btw, highly recommend postgresql, you will get much better text search support and transaction management in the database. Well worth the effort.
Evgeny's avatar Evgeny (2011-06-20 12:33:25 -0500) edit
add a comment see more comments

1 Answer


startforum script creates the django site - it is a deployment script, while installs the python modules where they belong on the python system tree.

In that case - if your current directory is /var/www/site/askantimoon, answer with "." (a dot - current directory). There may be an error message, ignore it.

The question "where to deploy" means - where on the file system to install the django site.

After startforum runs, you will get,, etc. - files necessary for the Django site.

Evgeny's avatar
updated 2011-06-20 12:27:30 -0500, answered 2011-06-20 12:25:43 -0500
edit flag offensive 0 remove flag delete link


Please clarify "creates the django site". I thought the django models, views, etc. were already in the askbot directory of the project. What will happen if I pull the latest changes from your dev repo? Do I need to "re-deploy" the site with startforum so that the changes are applied to my site?
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-20 15:27:24 -0500) edit
Also, if I deploy into my git project dir, won't that confuse git? Should the deployed files be tracked by git in my branch? If not, perhaps a separate dir would be better?
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-20 15:31:13 -0500) edit
Tomasz, git won't be confused all added files are in .gitignore, but you can change that too - since your cloned repo is your local.
Evgeny's avatar Evgeny (2011-06-20 15:57:56 -0500) edit
Thanks. I assume startforum adds these files to .gitignore. How about my first question about updating the project? How do I update the deployed files --,, etc.??
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-20 16:08:21 -0500) edit
Good question. If anything changes in and - those have to be done manually, usually only one line at a time. Not all updates require it, changes very rarely, but - more often, and never change.
Evgeny's avatar Evgeny (2011-06-20 16:13:20 -0500) edit
add a comment see more comments