mirror of https://github.com/statping/statping
vue
parent
11d4d1852b
commit
5794fc3c29
|
@ -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
|
||||
|
||||
|
|
2
Makefile
2
Makefile
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue