First time here? Check out the FAQ!
1

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 setup.py develop and created the MySQL database. Now it seems I have to run another setup script called startforum (why? I already ran setup.py).

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
179
Tomasz P. Szynalski
asked 2011-06-20 12:20:10 -0600
edit flag offensive 0 remove flag close merge delete

Comments

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 -0600) 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 -0600) edit
add a comment see more comments

1 Answer

1

startforum script creates the django site - it is a deployment script, while setup.py 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 settings.py, urls.py, etc. - files necessary for the Django site.

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

Comments

1
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 -0600) edit
1
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 -0600) 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 -0600) 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 -- urls.py, settings.py, etc.??
Tomasz P. Szynalski's avatar Tomasz P. Szynalski (2011-06-20 16:08:21 -0600) edit
Good question. If anything changes in settings.py and urls.py - those have to be done manually, usually only one line at a time. Not all updates require it, urls.py changes very rarely, but settings.py - more often, __init__.py and manage.py never change.
Evgeny's avatar Evgeny (2011-06-20 16:13:20 -0600) edit
add a comment see more comments