Some questions about deployment in Nuxt

personal project requirements are vue + ssr, so learn nuxt
but what you need to understand now is how to deploy the project
execute

nuxt build
nuxt start

generate a series of ssr rendering codes

read a lot of blogs, but the deployment is still not very clear
so does the server need me to copy the whole project, including .nuxt, and then use pm2 to execute it?
or just upload .Next for backend rendering (delete the code)?
is there any more effective way for officials?
for example, copy a .nuxt file directly to another official project and then directly perform rendering or something?
and just upload the code, and the server compiles and executes it with nuxt?
or is there any better way for those of you who have played nuxt?

Mar.17,2021

at present, our company's practice is to use git to manage
first delete .nuxt build these two folders, and then nuxt build , package the build files .nuxt build to the server, extract the
server to pull the latest code, update the decompressed .nuxt and build directories, and install dependent
to start the project with pm2.

because the performance of our server is not enough, in the local build, if the performance of the server is good, pull the code directly from the server and start the build, on the server. In fact, the files used are only those in the build and .nuxt folders, as well as npm modules.

Menu