Skip to content

Instantly share code, notes, and snippets.

@syang
Last active August 29, 2015 13:56
Show Gist options
  • Save syang/9053502 to your computer and use it in GitHub Desktop.
Save syang/9053502 to your computer and use it in GitHub Desktop.
test and run askbot locally

(Tried following of https://gist.github.com/ligthyear/5188195, where several errors were experienced. Therefore, write down my manual try and test sequence, which led a successful testing environment.)

Target Platform Tested on

Ubuntu 12.04 Precise, x86-64

You can test your platform with the follow command lines:

$ lsb_release -a
$ uname -a

Install system wide mysql package using apt-get

(I have used Snaptic Package Manger to install mysql-server mysql-client before)

$ sudo apt-get install libmysqlclient-dev

This will resolve issue when you try to pip install mysql-python without this installation

virtualenv setup

setup

$ mkdir askbot_on_bs
$ cd askbot_on_bs
$ git init .

create .gignore and add the following: .pyc AWS-ElasticBeanstalk-CLI bin/ lib/ man/ src/ include/ debug.sqlite

$ git add .
$ git ci -m"initial gitignore"


$ virtualenv .
$ source bin/activate
$ pip install Django==1.4.5 mysql-python
$ pip install -e git+git://github.com/ASKBOT/askbot-devel.git#egg=askbot
$ askbot-setup
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment