I have a vue3 + vitejs application that I would like to deploy on windows with pm2.
When I run the npm start myapp command, the status is in error.
Can you help me please?
ecosystem.config.js
name: 'myapp',
cwd: 'C:\myapp',
script: 'npm',
args: 'run dev'
Thank you.
What's the error. Secondly, you shouldn't be deploying your application through PM2. PM2 is normally used for backend node services. You're better off using IIS if you're on windows, building the application npm run build
, and pointing IIS to the dist folder.