简体   繁体   English

我应该使用Eclipse向导来部署Web应用程序吗?

[英]Should I use Eclipse wizard to deploy web application?

I use Eclipse " Dynamic Web Project " to create and test web application. 我使用Eclipse“ 动态Web项目 ”来创建和测试Web应用程序。 It will publish my application on application server in convenient way. 它将以方便的方式将我的应用程序发布到应用程序服务器上。 I don't need to write script, just wizard. 我不需要编写脚本,只需编写向导即可。

However, I am wondering it is a decent way to deploy a web application. 但是,我想知道这是部署Web应用程序的一种不错的方法。 What's your opinion? 你怎么看? Thanks! 谢谢!

(I used to use Ant script to deploy my application, it's standard way.) (我曾经使用Ant脚本来部署我的应用程序,这是标准方式。)

plus: Dynamic Web Project uses its specific directory layout which is different with Maven standard directory layout. 加:Dynamic Web Project使用其特定的目录布局,这与Maven标准目录布局不同。

This is fine for deploying to a dev or test server. 这适合于部署到开发或测试服务器。 Its a convenient way to quickly deploy to have a look at changes you've made and to do tests. 这是快速部署以查看所做更改和进行测试的便捷方法。

I would definitely not allow this for any other environment, eg live, pre-production etc. You should have an established process (eg documented change control) to deploy to these environments. 我绝对不会允许这样的任何其他环境中,如住,试生产等你应该有一个既定的程序(例如,文档变更控制)部署到这些环境。

I have heard it's still recommended to cold deploy and restart the server for not having a trouble with memory leaks, dynamic class loaders. 我听说仍然建议冷部署并重新启动服务器,以免遇到内存泄漏和动态类加载器的麻烦。 For myself I think comfortable to deploy from Eclipse to most environments. 我个人认为从Eclipse部署到大多数环境很舒适。 Basically Eclipse WTP server adapter can run the same deploy command as the other processes. 基本上,Eclipse WTP服务器适配器可以运行与其他进程相同的deploy命令。 When I use clouds like GAE or Beanstalk I do deploy from Eclipse plugin, it is the same like command line. 当我使用GAE或Beanstalk之类的云时,我确实是从Eclipse插件部署的,就像命令行一样。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM