Created
January 11, 2017 16:18
-
-
Save silentsudo/136e5ac221320409108286b172003963 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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