- Current developing database is configured to be run in docker. So it recommended to be installed.
- Or you may use another database. Just replace
spring.datasource.url
value in application.properties file to your db url.
- run db-recreate.sh from project directory
- run src/main/resources/db/updateLocalDb.sh to create local
- simply create .env file in project dir and place there all variables you need. Example
ENV_VAR=FOO
. Or copy them from env_example
- run deploy.sh from command line.
- that`s all.
- Deployment database may conflict with developing one. Change database settings in docker-compose.run.yaml or docker-compose.yaml if you need to run them both.
- Do not forget to change application db settings if you decided to do it
If you do not want to use docker you can run deploy as linux service
Simply run sudo bash deploy/linux_service/install_service.sh
Then configure /opt/bookshelf/app.config
Then run sudo systemctl start bookshelf
profit!
run sudo bash deploy/linux_service/remove_linux_service.sh
run sudo bash deploy/linux_service/create_jar.sh
and new jar file will replace existing in /opt/bookshelf then run Then run sudo systemctl restart bookshelf
to restart new jar file