|
|
Install in your environment of choice:
|
|
|
Examples below are given for a standard virtualenv/pip on ubuntu.
|
|
|
|
|
|
* git
|
|
|
|
|
|
$ sudo apt install git
|
|
|
|
|
|
* postgresql, setup a user and create a database (default name is escriptorium)
|
|
|
|
|
|
$ sudo apt install postgresql postgresql-contrib
|
... | ... | @@ -13,7 +17,7 @@ Examples below are given for a standard virtualenv/pip on ubuntu. |
|
|
|
|
|
* redis
|
|
|
|
|
|
$ sudo apt-get install redis-server
|
|
|
$ sudo apt install redis-server
|
|
|
|
|
|
<!--* elasticsearch
|
|
|
set max_map_count permanently
|
... | ... | @@ -22,13 +26,19 @@ set max_map_count permanently |
|
|
|
|
|
* third party tools
|
|
|
|
|
|
$ sudo apt-get install pngcrush
|
|
|
$ sudo apt install pngcrush
|
|
|
|
|
|
* clone the repo
|
|
|
|
|
|
$ git clone git@gitlab.inria.fr:scripta/escriptorium.git
|
|
|
$ cd escriptorium
|
|
|
|
|
|
* env
|
|
|
* env - using virtualenv here but any env manager should work
|
|
|
|
|
|
$ apt-get install build-essential python-dev python3-dev
|
|
|
$ virtualenv env -p python3.7 (any version >= 3.7 should work)
|
|
|
$ . env/bin/activate
|
|
|
$ sudo apt install build-essential python3.7 python-dev python3.7-dev python3-venv python3-pip # depends on distro/os a lot
|
|
|
$ pip3 install virtualenv
|
|
|
$ virtualenv env -p python3.7 # any version >= 3.7 should work
|
|
|
$ source env/bin/activate
|
|
|
$ pip install -r app/requirements.txt
|
|
|
|
|
|
* The default settings needs to be override for devs
|
... | ... | |