#!/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() {
/usr/bin/dokku proxy:ports-add http:80:3000
main() {
setup_db
setup_ports
main