Awesome
gitmonitor-server
purpose
The purpose of this app is to remind you to push your code before you shut your macbook and go home, it may be that other people depend on it or your harddrive dies on the way home...
how to install
read 'depends on' first
git clone https://github.com/theotow/gitmonitor-server
add cert.pem and key.pem in app/server/secrets/ please obtain them from apple developer console
npm install
npm run install
then open
Terminal1:
npm run up
Terminal2:
npm run watch
install on digital ocean droplet
-
run 'how to install' steps but skip the Terminal1, Terminal2 step
-
create droplet and init shell
docker-machine create --driver digitalocean --digitalocean-access-token <your token here> docker-sandbox
eval $(docker-machine env docker-sandbox)
- start the server
npm run up-prod-forever
open http://$(docker-machine ip docker-sandbox):3000
- set that ip in gitmonitor-ios && gitmonitor-client accordingly
depends on
- gitmonitor-client
- gitmonitor-ios
- docker
- node
- docker-compose
commands
npm run *
- install-package / install package in docker
- install-package / install all deps
- killall / delete all docker created container
- kill / kill node process in docker
- test-local / run tests local
- test / run tests in docker
- watch / start watching for file changes to the backend code in docker
- run / start the dependent docker container in docker
- watch-local / watch tests local
- up / runs the dev build
- up-prod / runs the production build
- up-prod-forever / run forever on docker
- build / build the dev build
- build-prod / build the prod build
Tested on Mac OSX 10.10.5 & node 4.2.2 & docker 1.10.0 & docker-compose 1.6.0
licence
MIT