Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to deploy Vue with PM2

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?

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

ecosystem.config.js

name: 'myapp',
cwd: 'C:\myapp',
script: 'npm',
args: 'run dev'

Thank you.

>Solution :

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading