Skip to content

Instantly share code, notes, and snippets.

@BunHouth
Last active January 4, 2022 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BunHouth/c1d34de80ab17cf6e8aa5c5c29bdeaa2 to your computer and use it in GitHub Desktop.
Save BunHouth/c1d34de80ab17cf6e8aa5c5c29bdeaa2 to your computer and use it in GitHub Desktop.

Setup Server Step

Step 1

make sure change count base on machine RAM

sudo apt-get -y update
sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=2048
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1
sudo vi /etc/fstab
# append content below into that fstab editor. make it new line
/var/swap.1 swap swap defaults 0 0

Step 2

install node js

cd ~ && curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt install nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn

Step 3

Install Postgres Database

sudo apt-get -y install postgresql libpq-dev

please follow this reference for complete setup psql

Step 4

Setup user account by follow this references

Step 5

Install RVM

Step 6

Install Nginx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment