mirror of https://github.com/statping/statping
parent
75c39124dc
commit
4ff0ee5a0d
|
@ -18,7 +18,7 @@ services:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- VERSION=0.27.3
|
- VERSION=0.27.4
|
||||||
- DB_HOST=localhost
|
- DB_HOST=localhost
|
||||||
- DB_USER=travis
|
- DB_USER=travis
|
||||||
- DB_PASS=
|
- DB_PASS=
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
ENV VERSION=v0.27.3
|
ENV VERSION=v0.27.4
|
||||||
|
|
||||||
RUN apk --no-cache add libstdc++ ca-certificates
|
RUN apk --no-cache add libstdc++ ca-certificates
|
||||||
RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-alpine.tar.gz && \
|
RUN wget -q https://github.com/hunterlong/statup/releases/download/$VERSION/statup-linux-alpine.tar.gz && \
|
||||||
|
|
|
@ -31,10 +31,10 @@ func MakePublicFolder(folder string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func CompileSASS() {
|
func CompileSASS() {
|
||||||
cmdBin := os.Getenv("SASS")
|
sassBin := os.Getenv("SASS")
|
||||||
shell := os.Getenv("BASH_ENV")
|
shell := os.Getenv("CMD_FILE")
|
||||||
log.Send(1, fmt.Sprintf("Compiling SASS into /css/base.css..."))
|
log.Send(1, fmt.Sprintf("Compiling SASS into /css/base.css..."))
|
||||||
command := fmt.Sprintf("%v %v %v", cmdBin, "assets/scss/base.scss", "assets/css/base.css")
|
command := fmt.Sprintf("%v %v %v", sassBin, "assets/scss/base.scss", "assets/css/base.css")
|
||||||
testCmd := exec.Command(shell, command)
|
testCmd := exec.Command(shell, command)
|
||||||
_, err := testCmd.Output()
|
_, err := testCmd.Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue