Report this

What is the reason for this report?

how to open 2 console window at the same time

Posted on July 13, 2015

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.



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!

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.

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.

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?

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.