nsi_survey_server

command module
v0.0.0-...-c16ca65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2022 License: MIT Imports: 9 Imported by: 0

README

nsi_survey_server

env GOOS=linux GOARCH=amd64 go build

Dev environment

The development env uses two bind mounts to connect the current local workspace and local microauth package to the container. To deploy development environment, setup auth public key in pk.pem and link via IPPK env var. To connect to container:

docker-compose -f deploy/dev/docker-compose.yaml up -d
docker exec -it NSISERVER_DEV bash

Env variables:

PORT=3031
DBUSER=
DBPASS=
DBNAME=
DBHOST=
DBSTORE=pgx
DBDRIVER=postgres
DBSSLMODE=
DBPORT=
IPPK=

To override using an .env file:

export $(grep -v '^#' .env | xargs)

To forward local env to DB via an ssh tunnel:

ssh -i ./<private key> -NL <localport>:<db server host>:<db server port>> <tunnel username>@<tunnel host>

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL