File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ Check Java version to see if installation was successfull: `java -version`
20
20
` adduser <username> `
21
21
` usermod -a -G sudo <username> `
22
22
23
- In the new user directory create a new directory called root. This is where the application jar will be added.
23
+ In the new user directory create a new directory called ` root ` . This is where the application jar will be added.
24
24
25
- ## Create an service to start the application
25
+ ## Create a service to start the application
26
26
27
27
In ` /etc/systemd/system/ ` create a ` <myservice>.service ` file and add the following.
28
28
@@ -71,7 +71,7 @@ After creating the file run the following command `ln -s /etc/nginx/sites-availa
71
71
Now run ` systemctl restart nginx ` to restart nginx for the above to take affect.
72
72
73
73
## Deploy
74
- Build the spring boot jar file and upload it to: ` /home/<username>/root/ `
74
+ Build the spring boot jar file, name it ` app.jar ` and upload it to: ` /home/<username>/root/ `
75
75
76
76
Start the service we created to run the app by running: ` systemctl start <myservice> `
77
77
You can’t perform that action at this time.
0 commit comments