Skip to content

How to set up local deployment

raylu edited this page Feb 1, 2019 · 15 revisions

Via docker

./docker.sh

Manually

Tested on Ubuntu 14.04 with Python 3.4, Ubuntu 16.04 and Python 3.5, and Archlinux.

Updated and tested the 12 September 2017.

First you need to fork this github repository. Just click the fork buton on github.

Be sure you have git and python3-dev and libpq-dev installed. If not, run sudo apt-get install git-core python3-dev libpq-dev

You also need virtualenv installed.

create a working directory: mkdir osr

go inside: cd osr/

create a virtual environment: virtualenv -p python3 venv

activate it: source venv/bin/activate

clone your git repo: git clone https://github.com/YOURUSERNAME/openstudyroom.git

go to project folder: cd openstudyroom/

change branch to dev: git checkout dev

install depedency: pip install -r requirements.txt

Rename machina local folder to fix the url issue. Mind the python version: mv ../venv/lib/python3.?/site-packages/machina/locale/ ../venv/lib/python3.?/site-packages/machina/locale.back/

run migrations and migrate:

./manage.py makemigrations

./manage.py migrate

Load initial datas: ./manage.py loaddata fixtures/initial_data.json

run the server: ./manage.py runserver

You can connect with user admin and pass admin

Clone this wiki locally