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
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

Welcome to DigitalOcean.

The Question is what OS and Application you use to login via SSH?

In Windows (Putty) you click on the nice icon on the left side and click on “New Session”.

Mac OS X and Linux are easy, you just open a new Terminal and do this:

ssh username@IP_OF_DROPLET

Yes. You cannot just open the console in two different browser windows because the console acts as the local keyboard and display for your droplet and will display the same session in each browser window. You can instead use one of these options:

1.) Using ssh. You can have two open ssh sessions open and run different tasks in them 2.) Use screen. This tool allows you to launch a new session, run some code and leave it running and use a keyboard shortcut to disconnect from the session.