java - How to upload .jar to AWS EC2 and restart JVM in which it's running? -


i'm new amazon web services , i'd learn best approaches uploading .jar artifacts ec2.

i have ec2 linux instance java server running on it. i'd have easy , elegant way update server. now, have kill server via ssh, upload new .jar via sftp , run server again on ssh.

is there solution better , more scalable scripting above?

if has meaning, i'm work intellij idea, plugin suit. or may there's framework takes on updates?

depending on how heavy-weight need solution be, give codedeploy this: http://aws.amazon.com/codedeploy/details/

if want more lightweight:

  • you @ ansible
  • you @ cron-job periodically pull jar , it's new compared what's running stops/copies/starts service.
  • there nothing wrong ssh if talking few machines.

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -