Deployment of Sthana-vendor on EC2.
(We should have EC2 instance should be ready/running with all packages. Check: EC2 setup)
Sthana-vendor:
- From your machine, build a WAR from the code.
- windows machines, cd to from D:\sthana\sthana\src\sthana\sthana-vendor
- $gradle build
- check war file under D:\sthana\sthana\src\sthana\sthana-vendor\build\libs [there should be war file available if build is successful]
- 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
- 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.
- Select WAR file to upload > Upload
- To connect with putty: ubuntu@52.0.157.177 with ppk key [set ppk in Connection > SSH > Auth]
~/leshan/leshan-standalone$ java -jar target/leshan-stan-*-SNAPSHOT-jar-with-dependencies.jar
--------------------------------
Sthana-core:
- From your machine, build a WAR from the code.
- windows machines, cd to from build war from D:\sthana\sthana\src\sthana\sthana-core
- $gradle build
- check war file under D:\sthana\sthana\src\sthana\sthana-core\build\libs [there should be war file available if build is successful]
- 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
- 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.
- Select WAR file to upload > Upload
- To connect with putty: ubuntu@54.88.185.161 with ppk key [set ppk in Connection > SSH > Auth]
~/leshan/leshan-standalone$ java -jar target/leshan-stan-*-SNAPSHOT-jar-with-dependencies.jar
No comments:
Post a Comment