http://www.cakesolutions.net/teamblogs/2014/01/28/deploying-scala-akka-based-applications-to-amazon-cloud
https://www.playframework.com/documentation/2.1.0/HTTPServer
https://stevenwilliamalexander.wordpress.com/2012/06/10/amazon-ec2-mongo-play-scala-instance-setup-gu/
Showing posts with label EC2. Show all posts
Showing posts with label EC2. Show all posts
Deploy Grails app to the EC2 instance
Deploy Grails app to the EC2 instance
1) Download private_key.pem private key for amazon instance connection to the private folder
2) cd ~/private
3) chmod 400 private_key.pem
4) ssh -i ./private_key.pem ubuntu@my.ec2.com
5) Install Tomcat
tar xvzf apache-tomcat-7.0.59.tar.gz wget http://apache.cp.if.ua/tomcat/tomcat-7/v7.0.59/bin/apache-tomcat-7.0.59.tar.gz
6) Get ROOT.war file of your Grails app with production settings
7) Copy ROOT.war to remote server
scp -i ../../../../private/private_key.pem ROOT.war ubuntu@my.ec2.com:/opt/apache-tomcat-7.0.59/webapps
8) Rename apache-tomcat-7.0.59 to AppName
9) Enable log
tail -f catalina.out
10) Srartup
/opt/AppName/bin$ ./catalina.sh srartup
============= Additional notes ================
// Reloading nginx configuration
/etc/nginx/sites-available# /etc/init.d/nginx reload// Delete all from /opt/AppName/temp and /opt/AppName/work from db.
// Terminate tomcat ps aux | grep tomcat sudo kill -9 PORT // Delete ROOT folder from /opt/AppName/webapps sudo rm -r ROOT
// Stop process ps aux|grep tomcat lsof -i:8127 kill 4749
Subscribe to:
Posts (Atom)