summaryrefslogtreecommitdiff
path: root/INSTALL.md
blob: d331e32e0127b769bfefd556ca685abefd153545 (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
Install
=======

Install from Git
----------------

This procedure only works for Debian Jessie/Stretch for now.
If you know bash and your distribution the script should be easy to adapt (contributions are welcomed!).

```
# get the last install script (only work for Debian)
wget https://ishtar-archeo.net/install/install-ishtar-latest.tar.bz2
tar xvjf install-ishtar-latest.tar.bz2
rm install-ishtar-latest.tar.bz2

# install Ishtar script
cd install
bash ./ishtar-install.sh
```

```
• Default PostgreSQL host? [localhost]
• Which webserver do you want to use? ([nginx]/none)
• Which version would you like to use? ([develop]/master)
• 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
```