kopia lustrzana https://github.com/bugout-dev/moonstream
Merge pull request #242 from bugout-dev/build-go-on-server
Build server Go script on machinepull/243/head
commit
b1604d6b10
|
@ -3,9 +3,16 @@
|
|||
# Deployment script - intended to run on Moonstream database server
|
||||
|
||||
# Main
|
||||
APP_DIR="${APP_DIR:-/home/ubuntu/moonstream}"
|
||||
APP_DB_SERVER_DIR="${APP_DIR}/db/server"
|
||||
SCRIPT_DIR="$(realpath $(dirname $0))"
|
||||
SERVICE_FILE="${SCRIPT_DIR}/moonstreamdb.service"
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Building executable database server script with Go"
|
||||
/usr/local/go/bin/go build -o "${APP_DB_SERVER_DIR}/moonstreamdb" "${APP_DB_SERVER_DIR}/main.go"
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Replacing existing moonstreamdb service definition with ${SERVICE_FILE}"
|
||||
|
|
Ładowanie…
Reference in New Issue