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!
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.