admin管理员组文章数量:1022761
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
2 Answers
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.
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
2 Answers
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.
本文标签: javascriptWhen building with grunt howwhat do I deploy to my tomcat serverStack Overflow
版权声明:本文标题:javascript - When building with grunt howwhat do I deploy to my tomcat server? - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745511520a2153846.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论