#!/bin/bash

APP=task
BasePath=$(dirname $(readlink -f $0))
CfgPath=$BasePath/etc/task.yml
cd $BasePath
rm -rf $BasePath/bin/$APP
go build -o $BasePath/bin/$APP $BasePath/cmd/$APP/main.go \
&& $BasePath/bin/$APP -c=$CfgPath