How Can I Deploy A Vue.js App On A Tomcat?
I have a vue.js application and I want to deploy it on a server on a tomcat, it's posible and how ?
Answer
Yes of course you can, an extended tomcat app server has a structure like this:
[it is supposed that you are going to deploy a static application into tomcat]
apache-tomcat-x.y.zz/
bin/
conf/
lib/
logs/
temp/
webapps/
work/
....
just create a folder in weapps folder[e.g test] and put your static files inside it[just remember to take care of your relative path of resources], then fire up tomcat and in your browser refer to a link like this: http://localhost:8080/test/your_index_file.html
However there is point with is worth mentioning, actually tomcat is a web server[to be more precise it's a servlet container which is used to deploy java web applications into it], you should use a http sever somethig like apache_http_server or nginx.
Related Questions
- → How to update data attribute on Ajax complete
- → October CMS - Radio Button Ajax Click Twice in a Row Causes Content to disappear
- → Octobercms Component Unique id (Twig & Javascript)
- → Passing a JS var from AJAX response to Twig
- → Laravel {!! Form::open() !!} doesn't work within AngularJS
- → DropzoneJS & Laravel - Output form validation errors
- → Import statement and Babel
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM