Grails的部署在Amazon EC2上的应用Grails、Amazon

由网友(1杯敬相逢)分享简介:我公司开发的Grails应用程序,并成功地部署它Tomcat7的Windows版本。我想在Amazon EC2(AMI Linux的32版)进行部署。我在EC2上安装Tomcat7成功,一切运作良好。我调到.war文件到Amazon EC2上,但是我得到错误信息HTTP状态404:请求的资源不可用。我想知道如果之间的不...

我公司开发的Grails应用程序,并成功地部署它Tomcat7的Windows版本。我想在Amazon EC2(AMI Linux的32版)进行部署。我在EC2上安装Tomcat7成功,一切运作良好。我调到.war文件到Amazon EC2上,但是我得到错误信息HTTP状态404:请求的资源不可用。我想知道如果之间的不匹配产生的窗口.war文件和Linux是问题的根源?任何帮助AP preciated!

I have developed Grails app and successfully deployed it on Tomcat7 windows version. I wanted to deploy it on Amazon EC2 (AMI linux 32 version). I installed Tomcat7 on EC2 successfully and everything worked well. I transferred the .war file to amazon ec2 but I got error message that "http status 404: The requested resource is not available". I am wondering if the mismatch between generate .war file in windows and Linux is the source of problem? any help is appreciated!

推荐答案

你有没有研究过使用弹性魔豆部署? EC2本身更是一个IAAS,所以你还是要处理很多配置细节(如服务器的安装,负载均衡..),这是很困难的。魔豆是一个免费的包装(如PAAS)上大多数的AWS服务,你需要在一个典型安装一些pre配置环境准备好您的部署。

Have you looked into using Elastic Beanstalk for deployment? EC2 itself is more of an IAAS so you still have to handle a lot of config details (e.g. server install, load balancing..), which can be difficult. Beanstalk is a free wrapper (e.g. PAAS) around most of the AWS services you would need in a typical installation with some pre-configured environments ready for your deployment.

下面是关于如何部署使用Grails的文章魔豆 - 这是一个有点老了,但还是很重要。

Here's an article on how to deploy Grails using Beanstalk - it's a little old but still very relevant.

阅读全文

相关推荐

最新文章