-
-
Save VikParuchuri/64e3668f240d5fb0dd5b to your computer and use it in GitHub Desktop.
* Install brew packages (brew-packages.txt) | |
* Setup all packages that need it so that they start at startup | |
* Install pip (easy_install pip) | |
* Install virtualenvwrapper (pip install virtualenvwrapper) | |
* export WORKON_HOME=~/Envs | |
* mkdir -p $WORKON_HOME | |
* source /usr/local/bin/virtualenvwrapper.sh | |
* mkvirtualenv turfly | |
* export ARCHFLAGS="-Wno-error=unused-command-line-argument-hard-error-in-future"; | |
psql -d postgres | |
* pip install -r requirements.txt | |
* psql -d postgres | |
* CREATE DATABASE turfly; | |
* exit psql shell | |
* psql -d turfly (puts you into the psql shell) | |
* CREATE EXTENSION postgis; | |
* CREATE EXTENSION postgis_topology; | |
* CREATE EXTENSION fuzzystrmatch; | |
* CREATE EXTENSION postgis_tiger_geocoder; | |
* Exit the psql shell | |
* In turfly_server directory, create private.py | |
* Add this to private.py, but swap your mac username for user: | |
* DATABASES = { | |
'default': { | |
'ENGINE': 'django.contrib.gis.db.backends.postgis', | |
'NAME': 'turfly', | |
'USER': 'vik', | |
'PASSWORD': '', | |
'HOST': 'localhost', | |
'PORT': '' | |
} | |
} | |
* Run python manage.py syncdb | |
* python manage.py migrate | |
* python manage.py runserver |
I am having an error in the same step:
Alejandros-MacBook-Pro:turfly_server admin$ psql -d postgres
-bash: psql: command not found
Thank you, Vik.
-Jin
I go the same error, but was able to fix after running the followimg commands:
/////
brew install pkg-config libffi
sudo bash
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/
pip install bcrypt
///////
//// Now run
pip install -r requirements.txt
///////
Seems like Vik added the following to the contained documentation to fix this error as well
///////
If you get error about 9.3 compatibility
http://stackoverflow.com/questions/24379373/how-to-upgrade-postgres-from-9-3-to-9-4-without-losing-data
brew install pkg-config libffi
sudo export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/
pip install bcrypt
Got to step 10 and am getting the error:
15inches-2:~ tylermartin$ psql -d postgres
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
I found some discussion about how to fix it, creating the three directories that might be missing in Yosemite from http://stackoverflow.com/questions/25970132/pg-tblspc-missing-after-installation-of-os-x-yosemite but am getting the same error.
Can we jump on another call tomorrow to figure it out for us?
Thanks Vik!
Tyler