This README is a work in progress. Please see QUICKSTART.md for the current development onboarding process.
fablib and the knightlab cdn should be co-resident with this repository:
$ cd ..
$ git clone [email protected]:NUKnightLab/fablib.git
$ git clone [email protected]:NUKnightLab/cdn.knightlab.com.git
$ npm install -g npm
$ npm install less -g
$ npm install uglify-js -g
Build static to the build directory:
$ fab build
- or -
Build static and copy files to the dev location in the cdn repository:
$ fab stage_dev
Static files are hosted via an Nginx container from the build directory. See the compose file for details.
$ ./makecerts.sh
Set SSL cert trust:
- Preferences > Certificates
- View certificates
- Import: .localstack/KnightLabRoot.pem
Add the cert to keychain:
- File > Import items ...
- .localstack/server.test.pem
- set trust SSL
For building static media, you will need a Python2 virtualenvironment with the
dependencies in requirements.p2.txt
installed. See the fablib repo for static
build details.
$ docker-compose up
$ docker-compose run pg psql -h pg -U storymap