Created
September 28, 2019 14:09
-
-
Save mjy/02fc0bec94a3f0f4da792baad0df1a3f to your computer and use it in GitHub Desktop.
Postgis issues
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
Reinstalled MacOS from scratch once more to be absolutely sure the procedure works. The list of commands after this second reinstall were these: | |
(Installed Xcode and Firefox first) | |
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
\curl -sSL https://get.rvm.io | bash -s stable --ruby | |
brew edit proj | |
(Added patch referenced above) | |
brew install proj -s # Pay attention to -s argument, the patch won't be applied oherwiese. | |
brew install postgis | |
brew services start postgresql | |
brew install imagemagick@6 && brew link imagemagick@6 --force | |
brew install tesseract | |
brew install yarn | |
(reopened Terminal) | |
cd src | |
git clone git://github.com/SpeciesFileGroup/taxonworks.git # Used SSH version of URL, but you may use HTTPS as given by GitHub when you are not logged in | |
cd taxonworks | |
rvm install 2.5.1 | |
(skipped setting default ruby version) | |
gem install bundler | |
bundle | |
npm install | |
createuser -s -d -P taxonworks_development # With empty password | |
cp config/database.yml.example config/database.yml | |
cp config/secrets.yml.example config/secrets.yml | |
rake db:create | |
rake db:migrate | |
rake db:test:prepare | |
rake db:seed:development project_id=1 # Works, but shows message "Failed: Unable to create a Global ID for Otu without a model id." | |
rake # No failing tests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment