简体   繁体   English

使用eclipse和Jboss设置热部署

[英]Setting up hot deployment with eclipse and Jboss

I am used to work with rails locally where I can use any text editor I please while I have the server running. 我习惯于在本地使用Rails,在运行服务器的同时,我可以使用任何文本编辑器。 If I make changes to a file Webrick, it will pick it up and I am able to see the changes on the page. 如果我对Webrick文件进行更改,它将被选中,并且我可以在页面上看到更改。

Can I do this with eclipse? 我可以用日食吗? I am using Atom for html editing but every time I save the changes and reload the page, the changes are not done. 我正在使用Atom进行html编辑,但是每次保存更改并重新加载页面时,更改都不会完成。 Any ideas? 有任何想法吗?

Is your project an Eclipse Web project associated with a server in the Eclipse Servers view? 您的项目是与Eclipse Servers视图中的Servers关联的Eclipse Web项目吗? If so, double-click on the server and you'll be able to tweak a few thing. 如果是这样,请双击服务器,然后就可以进行一些调整。 The interesting option would be Automatically publish when resources change under Publishing . 有趣的选项是Automatically publish when resources change在“ PublishingAutomatically publish when resources change

PS: if you're using Java Enterprise or JBoss technologies, you can add JBoss Tools on top of your Eclipse IDE, it features some features and default settings that should make things simpler for you. PS:如果您使用的是Java Enterprise或JBoss技术,则可以在Eclipse IDE的顶部添加JBoss工具 ,它具有一些功能和默认设置,应该可以使事情变得更简单。

I've found the answer by going to eclipse in Preferences > General > Workspaces > Refresh using native hooks or polling 我已经找到答案了,方法是在Preferences > General > Workspaces > Refresh using native hooks or polling

This way I am able to edit html files with Atom. 这样,我就可以使用Atom编辑html文件。 Hope it helps someone 希望对别人有帮助

Question for reference: eclipse, refresh files edited by external editor 供参考的问题: 日食,刷新由外部编辑器编辑的文件

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

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