MediCare is a drug selling service, made using Spring Boot and Java.
To see the configuration of the Jenkins instance Go here
- Make sure Java 17 is installed
- Create the
medicare.service
file in/etc/systemd/system/
and add themedicare.service
file. - Run:
systemd enable medicare
to enable the service - Create an automatic deployment user:
useradd -m -d /opt/medicare/
- Add the
deployer
user into thesudoers
permissions of themedicare
service:
%deployer ALL= NOPASSWD: /bin/systemctl start medicare
%deployer ALL= NOPASSWD: /bin/systemctl stop medicare
%deployer ALL= NOPASSWD: /bin/systemctl restart medicare
- Copy the content of
env.example
into/opt/medicare/.env