Commit f6f5f1f1 by Bruno Bzeznik

Fixed the postgis extension creation

parent 41107f7b
* Create the container configuration:
* Create the container configuration (as root):
cp phylodb-container.nix /etc/nixos/
......@@ -17,18 +17,18 @@ Usage:
* Launch the initialization script that will start and finalize the phylodb installation:
sudo ./ ~/git/phylodb
* Log in
nixos-container root-login phylodb
sudo nixos-container root-login phylodb
* To wipe the container (for restarting the setup process):
nixos-container stop phylodb
rm -rf /var/lib/containers/phylodb
sudo nixos-container stop phylodb
sudo rm -rf /var/lib/containers/phylodb
......@@ -14,6 +14,10 @@ pip install sparqlwrapper
pip install django-debug-toolbar
pip install django-widget-tweaks
# Create the postgis extension into DBs (must be superuser)
sudo -u postgres psql -d editor_db -c "CREATE EXTENSION IF NOT EXISTS postgis"
sudo -u postgres psql -d browser_db -c "CREATE EXTENSION IF NOT EXISTS postgis"
# Create the databases schema
cd /var/lib/phyloalps/phylodb
python3 makemigrations
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment