Sunday, March 15, 2015

Deployment of sthana server on EC2



Deployment of Sthana-vendor on EC2.
(We should have EC2 instance should be ready/running with all packages. Check: EC2 setup)

Sthana-vendor:

  1. From your machine, build a WAR from the code.
  2. windows machines, cd to from D:\sthana\sthana\src\sthana\sthana-vendor
  3. $gradle build
  4. check war file under D:\sthana\sthana\src\sthana\sthana-vendor\build\libs [there should be war file available if build is successful]
  5. Hit URL: http://<serverIP>:8080/manager/html [in my case http://52.0.157.177:8080/manager/html] Enter <user username="sthana" password="S*****!***" which can be found on tomcat-users.xml
  6. To deploy another version of WAR, Stop > Undeploy in section /sthana-vendor-1.0 OR if you are deploying 1st time then simply select WAR.
  7. Select WAR file to upload > Upload
  8. To connect with putty: ubuntu@52.0.157.177 with ppk key [set ppk in Connection > SSH > Auth]
Check health of server : http://52.0.157.177:8080/sthana-vendor-1.0/health

~/leshan/leshan-standalone$ java -jar target/leshan-stan-*-SNAPSHOT-jar-with-dependencies.jar
--------------------------------

Sthana-core:

  1. From your machine, build a WAR from the code.
  2. windows machines, cd to from build war from D:\sthana\sthana\src\sthana\sthana-core
  3. $gradle build
  4. check war file under D:\sthana\sthana\src\sthana\sthana-core\build\libs [there should be war file available if build is successful]
  5. Hit URL: http://<serverIP>:8080/manager/html [in my case http://54.88.185.161:8080/manager/html] Enter <user username="sthana" password="S*****!***" which can be found on tomcat-users.xml
  6. To deploy another version of WAR, Stop > Undeploy in section /sthana-core-1.0 OR if you are deploying 1st time then simply select WAR.
  7. Select WAR file to upload > Upload
  8. To connect with putty: ubuntu@54.88.185.161 with ppk key [set ppk in Connection > SSH > Auth]
Check health of server : http://52.0.157.177:8080/sthana-core-1.0/health


~/leshan/leshan-standalone$ java -jar target/leshan-stan-*-SNAPSHOT-jar-with-dependencies.jar

No comments:

Post a Comment