Core

/bin/dev.sh (442 B)

 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

## Starts the app, reloading on changes

set -euo pipefail
dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $dir/..

# $PF_SECTION_START(keys)$
# $PF_SECTION_END(keys)$

[[ -f "$HOME/bin/oauth" ]] && . $HOME/bin/oauth
export {{{ .CleanKey }}}_encryption_key=TEMP_SECRET_KEY

# include env file
if [ -f ".env" ]; then
export $(cat .env | grep -v "#" | xargs)
fi

./bin/templates.sh
go mod tidy

ulimit -S -n 65536

air