ansible_cat/templates/start.sh

13 lines
471 B
Bash
Raw Normal View History

2019-01-21 21:56:36 +00:00
#!/usr/bin/env bash
# Run the java jar
2019-01-21 22:38:59 +00:00
DATABASE_URL="postgresql://localhost:{{ cat_postgres_db_port }}/{{ cat_postgres_db }}?user={{ cat_postgres_user }}&password={{ cat_postgres_password }}"
PORT="{{ cat_app_port }}"
2019-01-21 21:56:36 +00:00
AUTHORIZE-URI="{{ authorize_uri }}"
2019-02-13 21:40:27 +00:00
ACCESS-TOKEN-URI="{{ access_token_uri }}"
OAUTH-CONSUMER-KEY="{{ OAUTH_CONSUMER_KEY }}"
OAUTH-CONSUMER-SECRET="{{ OAUTH_CONSUMER_SECRET }}"
2019-01-21 21:56:36 +00:00
java -jar {{ cat_git_destination }}/releases/cat-{{version}}-SNAPSHOT.jar