dnote/server/api/scripts/dev.sh
2019-05-10 09:31:31 +10:00

13 lines
411 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/server"
# load env
export $(cat "$DOTENV_PATH" | xargs)
PORT=5000 CompileDaemon \
-directory="$basePath"/api \
-command="$basePath/api/api --emailTemplateDir $basePath/mailer/templates/src"