最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - When building with grunt howwhat do I deploy to my tomcat server? - Stack Overflow

programmeradmin0浏览0评论

I guess I'm used to using something like ant or maven that produces a war file and I deploy that war file to my server.

With grunt I don't see what I'm supposed to deploy. Am I supposed to grab the public dir and cut and paste?

I am using Backbone-Requires-Boilerplate it supplies the grunt file. I use the grunt mand and it executes without errors. I'm just at a loss on what to do next.

Any suggestions?

Thanks,

Andrew

I guess I'm used to using something like ant or maven that produces a war file and I deploy that war file to my server.

With grunt I don't see what I'm supposed to deploy. Am I supposed to grab the public dir and cut and paste?

I am using Backbone-Requires-Boilerplate it supplies the grunt file. I use the grunt mand and it executes without errors. I'm just at a loss on what to do next.

Any suggestions?

Thanks,

Andrew

Share Improve this question asked Oct 1, 2013 at 21:41 KingAndrewKingAndrew 1,1434 gold badges23 silver badges41 bronze badges 5
  • use codeship.io and grunt task to deploy - so basically, your grunt file will build your project and launch node or whatever engine you are running and codeship.io will watch your repo, pull your repo to your server and run your grunt task – imrane Commented Oct 2, 2013 at 1:29
  • @imrane codeship.io looks promissing down the road. I'm looking for a more scaled back DIY solution currently. – KingAndrew Commented Oct 2, 2013 at 13:15
  • I think my choice is going to be "use maven". It can create a war with just my js front end and I know how to deploy that already. I am just so impressed with the javascript opensource munity that I figured someone would have created something to fit that part of the production chain. – KingAndrew Commented Oct 2, 2013 at 13:23
  • people are using grunt-shell - github./sindresorhus/grunt-shell - ...jpetersson.se/#!/post/using-grunt-js-as-deployment-tool – imrane Commented Oct 2, 2013 at 16:00
  • This seems to be a very robust article on deploying javascript application. (alexsexton./blog/2013/03/deploying-javascript-applications) It includes a grunt.js plugin to deploy your static content an S3 CDN. – KingAndrew Commented Oct 3, 2013 at 14:11
Add a ment  | 

2 Answers 2

Reset to default 3

"grunt-tomcat-deploy" plugin build a war and publish over the Tomcat Admin Web Application.

https://npmjs/package/grunt-tomcat-deploy

You can use the "grunt-war" plugin to build the war (no maven or ant required for war assembly).

Side note:

The "grunt-tomcat-deploy" looks like it can deploy the war remotely (http) to tomcat but there was no mention in the docs about what version(s) of tomcat it supports. It might even be able to build the war that you need. I looked at the source code and it's war assembly is not very flexible but it might be a 1 stop shop for your needs.

发布评论

评论列表(0)

  1. 暂无评论