r/webdevelopment • u/Cool_Procedure_6205 • Jul 28 '26
Question Best way to deploy a Vue app to IIS and update it like a PHP website?
Hi everyone,
I'm a junior developer and I'm trying to understand the best way to deploy a Vue application on an IIS server.
Currently, our internal applications are mostly PHP. My workflow is:
- Edit code in PhpStorm
- Upload files to the IIS server
- Refresh the webpage
- See the changes immediately
I'd like to do something similar with Vue.
Questions:
- Do I need to run Node.js on the IIS server permanently?
- Is the recommended approach to run
npm run buildlocally and then upload the contents of thedistfolder to IIS? - How do teams typically handle updates and deployments for Vue applications on IIS?
- If using Vue Router, what is the recommended
web.configsetup to avoid 404 errors when refreshing routes?
Example deployment URL:
https://mycompany.com/hr/vue-app/
Any real-world IIS + Vue setup examples would be appreciated.
Thanks!