blob: 0f65978ec3ac199099ecb6b958fceece18d5e2d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
Install
=======
Install from Git
----------------
This procedure only works for Debian Stretch for now.
If you know bash and your distribution the script should be easy to adapt (contributions are welcomed!).
```
VERSION=latest # could also be 'develop'
# get the last install script (only work for Debian)
wget https://ishtar-archeo.net/install/install-ishtar-$VERSION.tar.bz2
tar xvjf install-ishtar-$VERSION.tar.bz2
rm install-ishtar-$VERSION.tar.bz2
# install Ishtar script
cd install
bash ./ishtar-install
```
```
• Default PostgreSQL host? [localhost]
• Which webserver do you want to use? ([nginx]/none)
• Which version would you like to use? ([develop]/main)
• Which base install path for Ishtar? [/srv/]
```
```
# create a new instance
bash ./ishtar-prepare-instance
```
```
• Which instance code name? [my_ishtar_instance]
• Which url? my_ishtar_instance.net
```
```
# you would probably like to load a fixture with towns (french dataset here)
cd /srv
mkdir data
cd data
wget "https://ishtar-archeo.net/fixtures/initial_towns-fr-latest.tar.bz2"
tar xvjf initial_towns-fr-latest.tar.bz2
rm initial_towns-fr-latest.tar.bz2
cd /srv/ishtar/my_ishtar_instance
./manage.py loaddata /srv/data/towns_norel-fr.json
./manage.py loaddata /srv/data/towns-fr.json
```
Test environment for UI
-----------------------
```
pip3 install selenium # eventually from a venv if used
mkdir -p $HOME/bin/
cd $HOME/bin/
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux32.tar.gz
tar -xvzf geckodriver-v0.24.0-linux32.tar.gz
rm geckodriver-v0.24.0-linux32.tar.gz
chmod +x geckodriver
export PATH=$PATH:$HOME/bin/geckodriver
```
|