Ask Your Question
1

startforum: where to deploy?

asked Jun 20 '11

Tomasz P. Szynalski gravatar image Tomasz P. Szynalski flag of Poland
179 1 9
http://ask.antimoon.com/

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?

Comments

Centos in tougher, because you have to compile a few system dependencies. Ubuntu is much easier to work with. Evgeny (Jun 20 '11)
Btw, highly recommend postgresql, you will get much better text search support and transaction management in the database. Well worth the effort. Evgeny (Jun 20 '11)

1 Answer

Sort by ยป oldest newest most voted
1
Tomasz P. Szynalski has selected this answer as correct

answered Jun 20 '11

Evgeny gravatar image Evgeny flag of Chile
6665 31 49 95
http://askbot.org/

updated Jun 20 '11

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.

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 (Jun 20 '11)
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 (Jun 20 '11)
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 (Jun 20 '11)
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 (Jun 20 '11)
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 (Jun 20 '11)
see 2 more comments

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow
1 follower

subscribe to rss feed

Stats

Asked: Jun 20 '11

Seen: 56 times

Last updated: Jun 20 '11