简体   繁体   中英

Run Node.js server and yarn serve vue-cli app at the same time

I've only start learning vuejs recently and I'm trying to build a real-time messaging apps. I was following this tutorial and able to get the nodejs server running but it would require me to use the command "node myapp.js" every single time and I can't run my vuejs apps after running nodejs server unless i stopped it with ctrl+c and type "yarn serve" again. How do I run the apps and trigger the server at the same time? I would really appreciate suggestions, thanks:)

You could try either of these packages:

Or just open up two console windows 😆

Try something like Node Foreman

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM