Skip to content

Commit

Permalink
Depoy example on SailAbove.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Richard committed Oct 8, 2015
1 parent 1e3d82c commit 909d2c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,21 @@ push:

run:
docker run -d -p 80:4242 krkr/apish

golive:
gohere
golive -apiDir=example/api

deploy-example:
@make -C example build
docker tag -f apish-example sailabove.io/krkr/apish-demo
docker push sailabove.io/krkr/apish-demo

sail-add:
sail services add krkr/apish-demo -p 80:4242 apish-demo

sail-redeploy:
sail services redeploy apish-demo

open:
sensible-browser http://apish-demo.krkr.app.runabove.io
4 changes: 2 additions & 2 deletions example/Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
build:
docker build --rm -t api-example .
docker build --rm -t apish-example .

test:
docker run --rm -ti \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /usr/bin/docker:/usr/bin/docker \
-p 80:4242 \
api-example
apish-example

0 comments on commit 909d2c8

Please sign in to comment.