- Java 11
- Jakarta EE 9.1 https://jakarta.ee/release/9/
- Payara 6 https://www.payara.fish/products/payara-platform-community/
- Start docker-compose:
docker-compose up
- Run project:
package payara-micro:bundle payara-micro:start
java -Djavamelody.datasources=java:app/PostgreSQLDS -jar target/gestionnaire-2.0.0-microbundle.jar --port 8080 --nocluster
eval "$(ssh-agent -s)"
chmod 600 deploy/deploy.key
ssh-add deploy/deploy.key
ssh-keyscan ns377672.ip-37-59-60.eu >> ~/.ssh/known_hosts
git remote add deploy dokku@ns377672.ip-37-59-60.eu:famivac-gestionnaire
git config --global push.default simple
git push deploy master:master
dokku postgres:backup-auth famivac-gestionnaire-db-prod AWS_ACCESS_KEY AWS_SECRET_KEY eu-west-3
- cron :
0 0 * * * dokku postgres:backup famivac-gestionnaire-db-prod famivac-gestionnaire-db-prod