dnote/pkg/server/api/scripts/dev.sh
Sung Won Cho 23a511dbe0
Improve package structure (#207)
* Improve package structure

* Set up travis
2019-06-25 19:20:19 +10:00

13 lines
415 B
Bash
Executable file

#!/bin/bash
# dev.sh starts a development environment for the api.
# usage: DOTENV_PATH=path_to_dotenv_file EMAIL_TEMPLATE_DIR=path_to_email_templates ./dev.sh
set -eux
basePath="$GOPATH/src/github.com/dnote/dnote/pkg/server"
# load env
export $(cat "$DOTENV_PATH" | xargs)
PORT=5000 CompileDaemon \
-directory="$basePath"/api \
-command="$basePath/api/api --emailTemplateDir $basePath/mailer/templates/src"