Skip to content

Instantly share code, notes, and snippets.

@silentsudo
Created January 11, 2017 16:18
Show Gist options
  • Save silentsudo/136e5ac221320409108286b172003963 to your computer and use it in GitHub Desktop.
Save silentsudo/136e5ac221320409108286b172003963 to your computer and use it in GitHub Desktop.
#!/bin/sh
#GET current working directory
CURRENT_DIR=`pwd`
echo "GOPATH is pointing to ${CURRENT_DIR}"
#Export GOPATH for current working directory
export GOPATH=${CURRENT_DIR}
echo "Starting server at http://localhost:9096"
#Run server instance
go run ${GOPATH}/path/to/main/file/Main.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment