UNCLASSIFIED

You need to sign in or sign up before continuing.
Commit 34632cf5 authored by Christopher Zell's avatar Christopher Zell
Browse files

utility launcher

parent b55d2e7b
if [[ "$1" == "clean" ]]; then
echo "Cleaning and re-creating db...";
dropdb common;
createdb common;
fi;
export SPRING_PROFILES_ACTIVE=production;
export SECURITY_ENABLED=true;
export PGHOST='localhost';
export PGPORT='5432';
export PG_DATABASE=common;
export APP_DB_ADMIN_PASSWORD='';
export PG_USER=${USER};
export APP_DB_RW_PASSWORD='';
export PG_RW_USER=${USER};
# dont have to require SSL here unlike the real prod profile
export SPRING_DATASOURCE_URL="jdbc:postgresql://$PGHOST:$PGPORT/$PG_DATABASE";
# run the app
mvn spring-boot:run -Pproduction
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment