This tutorial will guide you through the process of deploying multiple MERN apps to a single digital ocean ubuntu VPS droplet Reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Program to find probability for rolling of two dies for getting sums of die faces which are either less than or greater than or equal to given number */ | |
const validateData = (input) => { | |
const result = input.match(/^[<|>|=][1-6]$/); | |
return result != null ? true : false; | |
}; | |
const checkProbability = (sign, number) => { | |
let resultList = []; | |
let noOfExhaustiveEvent = 0; // this means our favorable event. |
These are the steps to setup an Ubuntu server from scratch and deploy a MERN app with the PM2 process manager and Nginx. We are using Linode, but you could just as well use a different cloud provider or your own machine or VM.
Create an account at Linode
Click on Create Linode
Choose your server options (OS, region, etc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(JUST IN case : / => frontslash, \ => backslash) | |
Check postgres version: | |
psql --version | |
Connect to postgres: | |
psql -U postgres | |
(the postgres user is default superuser for the postgresSQL) | |
# or the above error showed any socket / Peer Authentication error; then use this; |
OlderNewer