I develop with vue, and then npm run build
generates front-end pages.
now copies the generated pages to the back-end project, which feels very inefficient.
is there a better way to deploy it after it is generated at once?
Thank you!
I develop with vue, and then npm run build
generates front-end pages.
now copies the generated pages to the back-end project, which feels very inefficient.
is there a better way to deploy it after it is generated at once?
Thank you!
have you ever heard of remote deployment?!
the front end executes the npm command directly to deploy to the server, or write a shell script. As a developer, don't just look at the front-end technology.
is the back-end engineer based on spring? I usually deploy it with the backend project, specify the static resource path of spring, and then configure nginx.
after the front and rear ends are separated, if it is maintained by different teams, you can consider deploying the front-end pages on separate servers. Of course, you need to solve the problem of cross-domain access first.
my current project is to build jenkins and svn, on the server and compile it on the management side every time the code is written and submitted. Jenkins can also configure to detect code updates and compile automatically, which is very convenient
.vue promotional page pre-rendered as PHP template problem for the promotional page made with vue, the page after build has only one div tag, and the contents are all used in js files. The most important thing is that some pages need php variables to o...