#!/bin/bash
set -eu -o pipefail
setup_db() {
set -eu
if [ -f "/data/gitea/conf/app.ini" ]; then
echo "=====> Running database migration"
gitea migrate
fi
}
setup_ports() {
dokku proxy:ports-add http:80:3000
main() {
setup_db
setup_ports
main