java - Spring boot App not working after ssh logout -
so i'm deploying spring boot application on ubuntu lts server. built maven , running embedded tomcat.
i'm still new deployment process, did was:
- log server via ssh
- use scp upload my_application.zip
- unzip in ssh
- java -jar my_application.jar
now of works fine , i've been using quiet time. have make application stay online , available after logging out of shell.
i have read documentation running processes in background on linux , i've tried nohup java -jar myapplication.jar &
, screen
command , bg
. of them worked fine while i'm logged ssh.
here comes problem:
as end ssh session web app still available (so process didn't stop) looks & behaves weird. css not applied, js not work etc.
my guess paths or file system accesses messed up, have no idea @ how origin ssh session.
(when log ssh working fine again)
would great if has clue here
if server has encrypted home directory, re-encrypted once log out , therefore script stop working. not have lot of sense have encrypted homes on servers can disable it.
or run script different directory , avoid working files under home directory.
Comments
Post a Comment