mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 10:06:26 +00:00
Convert db backend to use Gorm, with basis for support
for Mysql and Postgres in addition to existing Sqlite
This commit is contained in:
@ -58,6 +58,7 @@ build_backend() {
|
||||
-w '/app/backend' \
|
||||
"${IMAGE}" \
|
||||
go build \
|
||||
-tags 'json1' \
|
||||
-buildvcs=false \
|
||||
-ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \
|
||||
-o "/app/bin/$FILENAME" \
|
||||
|
@ -24,6 +24,7 @@ echo -e "${BLUE}❯ ${CYAN}Building binaries for ${YELLOW}${GOARCH} (${TARGETPLA
|
||||
|
||||
# server
|
||||
go build \
|
||||
-tags 'json1' \
|
||||
-buildvcs=false \
|
||||
-ldflags "-w -s -X main.commit=${BUILD_COMMIT:-notset} -X main.version=${BUILD_VERSION} -X main.sentryDSN=${SENTRY_DSN:-}" \
|
||||
-o "${1:-/dist/server}" \
|
||||
|
Reference in New Issue
Block a user