mirror of https://github.com/statping/statping
vue
parent
11d4d1852b
commit
5794fc3c29
|
@ -15,7 +15,8 @@ RUN go mod download
|
||||||
|
|
||||||
ENV GO111MODULE on
|
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/GeertJohan/go.rice/rice && \
|
||||||
go get github.com/cortesi/modd/cmd/modd && \
|
go get github.com/cortesi/modd/cmd/modd && \
|
||||||
go get github.com/crazy-max/xgo
|
go get github.com/crazy-max/xgo
|
||||||
|
@ -27,7 +28,9 @@ RUN cd frontend && yarn install --pure-lockfile --network-timeout 1000000 && \
|
||||||
|
|
||||||
COPY . ./
|
COPY . ./
|
||||||
|
|
||||||
RUN make clean frontend-build compile
|
RUN make clean
|
||||||
|
RUN make frontend-build
|
||||||
|
RUN make compile
|
||||||
RUN make build
|
RUN make build
|
||||||
RUN chmod a+x statping && mv statping /go/bin/statping
|
RUN chmod a+x statping && mv statping /go/bin/statping
|
||||||
|
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -55,7 +55,7 @@ docker-latest: docker-base
|
||||||
docker-vue:
|
docker-vue:
|
||||||
docker build -t hunterlong/statping:vue --build-arg VERSION=${VERSION} .
|
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:base
|
||||||
docker push hunterlong/statping:vue
|
docker push hunterlong/statping:vue
|
||||||
|
|
||||||
|
|
|
@ -75,15 +75,17 @@ func InitApp() error {
|
||||||
if _, err := SelectAllServices(true); err != nil {
|
if _, err := SelectAllServices(true); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
checkServices()
|
|
||||||
if err := AttachNotifiers(); err != nil {
|
if err := AttachNotifiers(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
CoreApp.Notifications = notifier.AllCommunications
|
||||||
if err := AddIntegrations(); err != nil {
|
if err := AddIntegrations(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
CoreApp.Notifications = notifier.AllCommunications
|
|
||||||
CoreApp.Integrations = integrations.Integrations
|
CoreApp.Integrations = integrations.Integrations
|
||||||
|
|
||||||
|
go checkServices()
|
||||||
|
|
||||||
database.StartMaintenceRoutine()
|
database.StartMaintenceRoutine()
|
||||||
CoreApp.Setup = true
|
CoreApp.Setup = true
|
||||||
return nil
|
return nil
|
||||||
|
|
|
@ -21,6 +21,9 @@ import (
|
||||||
"github.com/hunterlong/statping/database"
|
"github.com/hunterlong/statping/database"
|
||||||
"github.com/hunterlong/statping/types"
|
"github.com/hunterlong/statping/types"
|
||||||
"github.com/hunterlong/statping/utils"
|
"github.com/hunterlong/statping/utils"
|
||||||
|
_ "github.com/jinzhu/gorm/dialects/mysql"
|
||||||
|
_ "github.com/jinzhu/gorm/dialects/postgres"
|
||||||
|
_ "github.com/jinzhu/gorm/dialects/sqlite"
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
2
go.mod
2
go.mod
|
@ -2,8 +2,6 @@ module github.com/hunterlong/statping
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
replace github.com/hunterlong/statping/utils v0.0.0 => ./utils
|
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/99designs/gqlgen v0.10.1
|
github.com/99designs/gqlgen v0.10.1
|
||||||
github.com/GeertJohan/go.rice v1.0.0
|
github.com/GeertJohan/go.rice v1.0.0
|
||||||
|
|
Loading…
Reference in New Issue