Created
March 2, 2014 00:31
-
-
Save jairot/9299910 to your computer and use it in GitHub Desktop.
Preciosa Vagrant Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt-get -y install language-pack-es-base | |
sudo apt-get -y install postgresql-9.1 libpq-dev postgresql-9.1-postgis gdal-bin | |
sudo apt-get -y install git python-pip python-dev | |
sudo apt-get -y install libxml2-dev libxslt1-dev | |
sudo -u postgres psql -c "CREATE ROLE dev LOGIN PASSWORD 'dev' SUPERUSER VALID UNTIL 'infinity';" | |
sudo -u postgres createdb template_postgis | |
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/postgis.sql | |
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis-1.5/spatial_ref_sys.sql | |
sudo -u postgres psql -d template_postgis -f /usr/share/postgresql/9.1/contrib/postgis_comments.sql | |
sudo -u postgres psql -c "CREATE DATABASE preciosa WITH ENCODING='UTF8' OWNER=dev TEMPLATE=template_postgis LC_COLLATE='en_US.UTF-8' LC_CTYPE='en_US.UTF-8' CONNECTION LIMIT=-1;" | |
git clone $1 | |
cd preciosa | |
sudo pip install -r requirements.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment