Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# npm
npm installStart the development server on http://localhost:7771:
# npm
npm run devBuild the application for production:
# npm
npm run build- Copy the
outputdirectory from the build process to the server - Copy the
server-datadirectory to the production server - Copy the
ecosystem.config.jspm2 config file to the server - Copy the
passwords.jsfile - not in the repo - to the server - Reload pm2
pm2 reload ecosystem.config.jsor readecosystem.config.jsfor more information - Can run manually using this command as well
NITRO_PORT=8091 PROFILE=cloud NUXT_APP_BASE_URL=/cloud node .output/server/index.mjs
Check out the deployment documentation for more information.