summaryrefslogtreecommitdiff
path: root/INSTALL.md
blob: 0c087a6712f25ab1a973fb866896e5c9074da36c (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
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
```