mirror of https://github.com/statping/statping
package name change
parent
96ea09da50
commit
4aa20dbd0c
2
Makefile
2
Makefile
|
@ -177,7 +177,9 @@ docker-push-cypress:
|
||||||
|
|
||||||
# push the :latest tag to Docker hub
|
# push the :latest tag to Docker hub
|
||||||
docker-push-latest:
|
docker-push-latest:
|
||||||
|
docker tag hunterlong/statping hunterlong/statping:dev
|
||||||
docker push hunterlong/statping:latest
|
docker push hunterlong/statping:latest
|
||||||
|
docker push hunterlong/statping:dev
|
||||||
docker push hunterlong/statping:v${VERSION}
|
docker push hunterlong/statping:v${VERSION}
|
||||||
|
|
||||||
docker-run-mssql:
|
docker-run-mssql:
|
||||||
|
|
|
@ -9,7 +9,7 @@ RUN apk add --no-cache libstdc++ gcc g++ make git ca-certificates linux-headers
|
||||||
RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \
|
RUN curl -L -s https://github.com/golang/dep/releases/download/$DEP_VERSION/dep-linux-amd64 -o /go/bin/dep && \
|
||||||
chmod +x /go/bin/dep
|
chmod +x /go/bin/dep
|
||||||
|
|
||||||
RUN curl -L -s https://assets.statping.io/sass -o /usr/local/bin/sass && \
|
RUN curl -L -s https://assets.statup.io/sass -o /usr/local/bin/sass && \
|
||||||
chmod +x /usr/local/bin/sass
|
chmod +x /usr/local/bin/sass
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/hunterlong/statping
|
WORKDIR /go/src/github.com/hunterlong/statping
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
OS=osx
|
||||||
|
ARCH=x64
|
||||||
|
REPO=github.com/hunterlong/statping
|
||||||
|
VERSION=$(curl -s "https://$REPO/releases/latest" | grep -o 'tag/[v.0-9]*' | awk -F/ '{print $2}')
|
||||||
|
if [ `getconf LONG_BIT` = "64" ]
|
||||||
|
then
|
||||||
|
ARCH=x64
|
||||||
|
else
|
||||||
|
ARCH=x32
|
||||||
|
fi
|
||||||
|
unameOut="$(uname -s)"
|
||||||
|
case "${unameOut}" in
|
||||||
|
Linux*) OS=linux;;
|
||||||
|
Darwin*) OS=osx;;
|
||||||
|
CYGWIN*) OS=windows;;
|
||||||
|
MINGW*) OS=windows;;
|
||||||
|
*) OS="UNKNOWN:${unameOut}"
|
||||||
|
esac
|
||||||
|
printf "Installing $VERSION for $OS $ARCH...\n"
|
||||||
|
FILE="https://$REPO/releases/download/$VERSION/statping-$OS-$ARCH.tar.gz"
|
||||||
|
printf "Downloading latest version URL: $FILE\n"
|
||||||
|
curl -L -sS $FILE -o statping.tar.gz && tar xzf statping.tar.gz && rm statping.tar.gz
|
||||||
|
chmod +x statping
|
||||||
|
mv statping /usr/local/bin/
|
||||||
|
echo "Statup $VERSION has been successfully installed! Try 'statping version' to check it!"
|
|
@ -1,15 +0,0 @@
|
||||||
{
|
|
||||||
"id": "0ff1dcd6-54f3-44a7-9c18-cc3c8e7df357",
|
|
||||||
"name": "Local Statping",
|
|
||||||
"values": [
|
|
||||||
{
|
|
||||||
"key": "endpoint",
|
|
||||||
"value": "http://127.0.0.1:8080",
|
|
||||||
"description": "",
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"_postman_variable_scope": "environment",
|
|
||||||
"_postman_exported_at": "2018-11-17T16:55:15.031Z",
|
|
||||||
"_postman_exported_using": "Postman/6.5.2"
|
|
||||||
}
|
|
2
doc.go
2
doc.go
|
@ -12,7 +12,7 @@
|
||||||
// brew install statping
|
// brew install statping
|
||||||
//
|
//
|
||||||
// // Linux installation
|
// // Linux installation
|
||||||
// bash <(curl -s https://assets.statping.com/install.sh)
|
// bash <(curl -s https://assets.statup.io/install.sh)
|
||||||
// statping version
|
// statping version
|
||||||
//
|
//
|
||||||
// Docker
|
// Docker
|
||||||
|
|
|
@ -102,6 +102,7 @@ func saveAssetsHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
err := source.CreateAllAssets(dir)
|
err := source.CreateAllAssets(dir)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
utils.Log(3, err)
|
utils.Log(3, err)
|
||||||
|
sendErrorJson(err, w, r)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = source.CompileSASS(dir)
|
err = source.CompileSASS(dir)
|
||||||
|
|
Loading…
Reference in New Issue