|
| 1 | + |
| 2 | +Askbot Installation: |
| 3 | +-------------------- |
| 4 | + |
| 5 | +Install and run the askBot project |
| 6 | + |
| 7 | +Setup server environment: |
| 8 | +------------------------- |
| 9 | + |
| 10 | +Tested installation on ubuntu 15.10 |
| 11 | + |
| 12 | +Install linux packages: |
| 13 | +----------------------- |
| 14 | +~ $ sudo apt-get install libjpeg62 libjpeg-dev |
| 15 | + |
| 16 | +Install pip |
| 17 | +----------- |
| 18 | + |
| 19 | +NOTE: if ‘which pip’ returns a path to pip, it is already installed. If it is not installed, follow these instructions: |
| 20 | + |
| 21 | +get ‘ez_setup.py’: |
| 22 | + |
| 23 | +~ $ wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python |
| 24 | + |
| 25 | +verify easy install: |
| 26 | + |
| 27 | +~ $ which easy_install |
| 28 | +/usr/local/bin/easy_install |
| 29 | + |
| 30 | +install pip: |
| 31 | + |
| 32 | +~ $ sudo easy_install pip |
| 33 | + |
| 34 | +Install virtualenwrapper: |
| 35 | +------------------------- |
| 36 | +~ $ sudo apt-get install virtualenvwrapper |
| 37 | + |
| 38 | +Create a new Environment: |
| 39 | +------------------------- |
| 40 | +~ $ mkvirtualenv askbotEnv |
| 41 | + |
| 42 | +Switch to the new Environment: |
| 43 | +------------------------------ |
| 44 | +~ $ workon askbotEnv |
| 45 | + |
| 46 | +Git setup: |
| 47 | +---------- |
| 48 | +~ $ git clone https://github.com/pingupingu/askbot-devel.git |
| 49 | + |
| 50 | +Working on askbot: |
| 51 | +------------------ |
| 52 | +~ $ cd askbot-devel |
| 53 | +~ $ pip install -r askbot_requirements |
| 54 | +~ $ python setup.py develop |
| 55 | +~ $ askbot-setup ## and follow the prompts with an <install directory> and postgresql database as setup below |
| 56 | + |
| 57 | +Setup postgresql with user: askbotuser and password: askbotpassword on database: askbotd |
| 58 | +---------------------------------------------------------------------------------------- |
| 59 | +~ $ sudo -iu postgres |
| 60 | +~ $ psql -c 'CREATE USER askbotuser WITH PASSWORD 'askbotpassword'; |
| 61 | +~ $ psql -c "CREATE DATABASE askbotdb WITH OWNER askbotuser;" |
| 62 | + |
| 63 | +Running askbot on port 10000: |
| 64 | +----------------------------- |
| 65 | +~ $ cd <install directory> |
| 66 | +~ $ python manage.py collectstatic ## test to make sure everything is OK |
| 67 | + |
| 68 | +~ $ python manage.py runserver 127.0.0.1:10000 ## run on port 10000 |
| 69 | + |
| 70 | +Then open the http://127.0.0.1:10000 on the browser and create/signup as a new user |
| 71 | + |
0 commit comments