package name change

pull/109/head
Hunter Long 2018-12-04 00:15:33 -08:00
parent 96ea09da50
commit 4aa20dbd0c
7 changed files with 31 additions and 17 deletions

View File

@ -177,7 +177,9 @@ docker-push-cypress:
# push the :latest tag to Docker hub
docker-push-latest:
docker tag hunterlong/statping hunterlong/statping:dev
docker push hunterlong/statping:latest
docker push hunterlong/statping:dev
docker push hunterlong/statping:v${VERSION}
docker-run-mssql:

View File

@ -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 && \
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
WORKDIR /go/src/github.com/hunterlong/statping

26
dev/install.sh Normal file
View File

@ -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!"

View File

@ -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
View File

@ -12,7 +12,7 @@
// brew install statping
//
// // Linux installation
// bash <(curl -s https://assets.statping.com/install.sh)
// bash <(curl -s https://assets.statup.io/install.sh)
// statping version
//
// Docker

View File

@ -102,6 +102,7 @@ func saveAssetsHandler(w http.ResponseWriter, r *http.Request) {
err := source.CreateAllAssets(dir)
if err != nil {
utils.Log(3, err)
sendErrorJson(err, w, r)
return
}
err = source.CompileSASS(dir)