pull/429/head
Hunter Long 2020-02-29 22:57:30 -08:00
parent 11d4d1852b
commit 5794fc3c29
5 changed files with 13 additions and 7 deletions

View File

@ -15,7 +15,8 @@ RUN go mod download
ENV GO111MODULE on
RUN go get github.com/stretchr/testify/... && \
RUN go get github.com/stretchr/testify/assert && \
go get github.com/stretchr/testify/require && \
go get github.com/GeertJohan/go.rice/rice && \
go get github.com/cortesi/modd/cmd/modd && \
go get github.com/crazy-max/xgo
@ -27,7 +28,9 @@ RUN cd frontend && yarn install --pure-lockfile --network-timeout 1000000 && \
COPY . ./
RUN make clean frontend-build compile
RUN make clean
RUN make frontend-build
RUN make compile
RUN make build
RUN chmod a+x statping && mv statping /go/bin/statping

View File

@ -55,7 +55,7 @@ docker-latest: docker-base
docker-vue:
docker build -t hunterlong/statping:vue --build-arg VERSION=${VERSION} .
push-vue: clean frontend-build compile docker-base docker-vue
push-vue: clean docker-base docker-vue
docker push hunterlong/statping:base
docker push hunterlong/statping:vue

View File

@ -75,15 +75,17 @@ func InitApp() error {
if _, err := SelectAllServices(true); err != nil {
return err
}
checkServices()
if err := AttachNotifiers(); err != nil {
return err
}
CoreApp.Notifications = notifier.AllCommunications
if err := AddIntegrations(); err != nil {
return err
}
CoreApp.Notifications = notifier.AllCommunications
CoreApp.Integrations = integrations.Integrations
go checkServices()
database.StartMaintenceRoutine()
CoreApp.Setup = true
return nil

View File

@ -21,6 +21,9 @@ import (
"github.com/hunterlong/statping/database"
"github.com/hunterlong/statping/types"
"github.com/hunterlong/statping/utils"
_ "github.com/jinzhu/gorm/dialects/mysql"
_ "github.com/jinzhu/gorm/dialects/postgres"
_ "github.com/jinzhu/gorm/dialects/sqlite"
"sync"
"time"
)

2
go.mod
View File

@ -2,8 +2,6 @@ module github.com/hunterlong/statping
go 1.13
replace github.com/hunterlong/statping/utils v0.0.0 => ./utils
require (
github.com/99designs/gqlgen v0.10.1
github.com/GeertJohan/go.rice v1.0.0