how to open 2 console window at the same time

my app structure is as follows: app - backend - server.js (start this by doing NODE_ENV=production grunt) - frontend - server.js (start this by doing NODE_ENV=production grunt)

the thing is on the console window I can only run one script. So is there a way that I can have 2 (virtual) consoles that login to the same instance? Thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Could be possible, but its not a big issue. Just download putty, login to your server with root and your password and you got the same setup but in a program.

In putty you can use the screen command. What do you mean with “the server just stopped”? Does it reboot the server or shut it down?

This comment has been deleted

I suggest you use screen, this is very usefull and you can detach and attach to this screen whenever you want. You can also use these screen scripts on startup, so your app runs automatically.