Fix ansible and DB URL
This commit is contained in:
parent
d2e8751da9
commit
12deb7f2ab
2 changed files with 1 additions and 4 deletions
|
@ -17,8 +17,6 @@
|
||||||
|
|
||||||
|
|
||||||
- name: Ensure mariadb installation and setup database (see default vars)
|
- name: Ensure mariadb installation and setup database (see default vars)
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
||||||
include_role:
|
include_role:
|
||||||
name: geerlingguy.mysql
|
name: geerlingguy.mysql
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Run the java jar
|
# Run the java jar
|
||||||
|
|
||||||
export DATABASE_URL="mysql://localhost:{{ cat_db_port }}/{{ cat_db_name }}?user={{ cat_db_user }}&password={{ cat_db_password }}"
|
export DATABASE_URL="mysql://localhost:{{ cat_db_port }}/{{ cat_db_name }}?user={{ cat_db_user }}&password={{ cat_db_password }}?useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC"
|
||||||
export PORT="{{ cat_app_port }}"
|
export PORT="{{ cat_app_port }}"
|
||||||
export APP_HOST="{{ cat_app_host }}"
|
export APP_HOST="{{ cat_app_host }}"
|
||||||
|
|
||||||
|
@ -17,4 +17,3 @@ java -jar {{ cat_git_destination }}/releases/cat.jar migrate
|
||||||
|
|
||||||
java -jar {{ cat_git_destination }}/releases/cat.jar
|
java -jar {{ cat_git_destination }}/releases/cat.jar
|
||||||
-Dlogback.configurationFile=env/dev/resources/logback.xml \
|
-Dlogback.configurationFile=env/dev/resources/logback.xml \
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue