These instructions assume you are using Mac OS X. To set up a staging or production server, please follow script/provision.sh
instead.
Found an issue? Feel free to suggest edits!
brew install node
brew tap amacneil/dbmate && brew install dbmate
git clone https://github.com/sagefy/sagefy.git
cd sagefy
npm install
cp .env.example .env
docker-compose up
npm run dbmate up
npm run gendata
http://localhost:2601/graphiql
, there should be a Graphiql window.http://localhost/
, the home page should be working.npm install && npm start
To shut down local dev:
docker-compose down
Rebuild the containers (if config change):
docker-compose up --build
Restart a service manually:
docker-compose restart [servicename_1]
Access Postgres REPL:
npm run dbrepl
Run tests:
npm install && npm test
docker rm -f $(docker ps -a -q)
docker rmi -f $(docker images -q)
Back up database
# ssh into the server
./script/dbbu.sh
Deploy
# ssh into the server
./script/deploy.sh