Setting up a dev environment - AtlasOfLivingAustralia/volunteer-portal GitHub Wiki
How to set up a dev environment in n easy steps...
- Install relevant Grails version (2.5.3):
curl -s get.sdkman.io | bashthensdk install grails 2.5.3 - Install PostgreSQL:
brew install postgres - Create volunteers db:
createdb volunteers - Add postgres user that has access to the volunteers database, eg:
createuser -s -P postgreswith passwordpassword - Setup /data directory:
mkdir -p /data/volunteer; mkdir -p /data/volunteer-portal/config - Add external config file for CAS:
/data/volunteer-portal/config/volunteer-portal.config - Install a web server and start it, eg:
sudo apachectl start - Symlink
http://localhost/datato/data, eg:cd /Library/WebServer/Documents/; ln -s data /data - Install example DB dump:
pg_restore -C -d postgres $dump_path - For ALA CAS, give your local machine a .ala.org.au hostname, eg:
devt.ala.org.auby editting/etc/hostsand adding a line like:::1 devt.ala.org.auand127.0.0.1 devt.ala.org.au
For production, one should run behind nginx. The ansible "scripts" have not been updated to reflect this yet.