From 9cf4bdb85f1cb65178f3356e979fa29fe37a7ce6 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Mon, 11 Apr 2016 21:07:01 +0800 Subject: [PATCH] [ci skip] update readme. Signed-off-by: Bo-Yi Wu --- README.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3d82470..dde348e 100644 --- a/README.md +++ b/README.md @@ -81,7 +81,7 @@ The default endpoint is APNs development. Please add `-production` flag for APNs $ gopush -ios -m="your message" -i="API Key" -t="Device token" -production ``` -### Run gopush with web server +## Run gopush web server Please make sure your [config.yml](config/config.yml) exist. Default port is `8088`. @@ -97,6 +97,21 @@ $ http -v --verify=no --json GET https://localhost:8088/api/status ![statue screenshot](screenshot/status.png) +## Run gopush in Docker + +Set up `gopush` in the cloud in under 5 minutes with zero knowledge of Golang or Linux shell using our [gopush Docker image](https://hub.docker.com/r/appleboy/gopush/). + +```bash +$ docker pull appleboy/gopush +$ docker run -name gopush -p 80:8088 appleboy/gopush +``` + +Testing your gopush server. + +```bash +$ http -v --verify=no --json GET http://your.docker.host/api/status +``` + ## License Copyright 2016 Bo-Yi Wu [@appleboy](https://twitter.com/appleboy).