Skip to content
This repository has been archived by the owner on Oct 5, 2024. It is now read-only.

Commit

Permalink
Merge pull request #485 from olivas/master
Browse files Browse the repository at this point in the history
Minor tweaks to local setup
  • Loading branch information
emi420 authored Mar 20, 2024
2 parents a0c78da + 6bf29d5 commit 89c3dd4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion docs/get-started/Setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ postgres=# CREATE USER underpass WITH PASSWORD 'your_password';
postgres=# CREATE DATABASE underpass;
postgres=# GRANT ALL PRIVILEGES ON DATABASE "underpass" to underpass;
postgres=# ALTER ROLE underpass SUPERUSER;
postgres=# exit
exit
psql postgresql://underpass:your_password@localhost:5432/underpass < setup/underpass.sql
psql postgresql://underpass:your_password@localhost:5432/underpass < setup/db/underpass.sql
```

#### Requirements

```
sudo apt install python3-pip -y
sudo apt install python3.11-venv
python3 -m venv ~/venv
source ~/venv/bin/activate
pip install fiona
pip install shapely
Expand All @@ -36,7 +38,9 @@ apt install osm2pgsql

Go to the `setup` directory and run the boostrap script:

```
cd utils
chmod +x bootstrap.sh
./bootstrap.sh -r south-america -c uruguay
```

Expand Down
2 changes: 1 addition & 1 deletion setup/bootstrap.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ then
then
docker exec -w /code/build -t underpass underpass --bootstrap
else
underpass --bootstrap
underpass --bootstrap --server=$USER:$PASS@$HOST:$PORT/$DB
fi
echo "Done."
echo " "
Expand Down

0 comments on commit 89c3dd4

Please sign in to comment.