UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
TRON
A
Arcade-Archive
tron-common-api
tron-common-api
Commits
34632cf5
Commit
34632cf5
authored
Aug 24, 2021
by
Christopher Zell
Browse files
utility launcher
parent
b55d2e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
prod.sh
prod.sh
+22
-0
No files found.
prod.sh
0 → 100755
View file @
34632cf5
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment