Skip to content

Instantly share code, notes, and snippets.

@rootsec1
Last active May 21, 2021 13:23
Show Gist options
  • Select an option

  • Save rootsec1/b5e251f8ef0c05147fbff627206514cb to your computer and use it in GitHub Desktop.

Select an option

Save rootsec1/b5e251f8ef0c05147fbff627206514cb to your computer and use it in GitHub Desktop.

Revisions

  1. rootsec1 revised this gist Jan 9, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prod-deploy-setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    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 update && sudo apt -y upgrade
    sudo apt install -y nodejs npm nginx yarn python3-certbot-nginx
    sudo apt install -y nodejs npm nginx yarn redis python3-certbot-nginx
    sudo chown -R $(whoami) ~/.npm
    sudo npm i -g pm2
    pm2 list
  2. rootsec1 revised this gist Jan 5, 2021. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prod-deploy-setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    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 update && sudo apt -y upgrade
    sudo apt install -y nodejs npm nginx yarn
    sudo apt install -y nodejs npm nginx yarn python3-certbot-nginx
    sudo chown -R $(whoami) ~/.npm
    sudo npm i -g pm2
    pm2 list
  3. rootsec1 revised this gist Dec 31, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prod-deploy-setup.sh
    Original file line number Diff line number Diff line change
    @@ -9,4 +9,4 @@ sudo systemctl enable nginx
    sudo ufw allow ssh
    sudo ufw allow http
    sudo ufw allow https
    sudo ufw enable
    echo "y" | sudo ufw enable
  4. rootsec1 revised this gist Dec 31, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prod-deploy-setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    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 update && sudo apt upgrade -y
    sudo apt update && sudo apt -y upgrade
    sudo apt install -y nodejs npm nginx yarn
    sudo chown -R $(whoami) ~/.npm
    sudo npm i -g pm2
  5. rootsec1 revised this gist Dec 31, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions prod-deploy-setup.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    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 update && sudo apt upgrade
    sudo apt install nodejs npm nginx yarn
    sudo apt update && sudo apt upgrade -y
    sudo apt install -y nodejs npm nginx yarn
    sudo chown -R $(whoami) ~/.npm
    sudo npm i -g pm2
    pm2 list
  6. rootsec1 created this gist Dec 31, 2020.
    12 changes: 12 additions & 0 deletions prod-deploy-setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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 update && sudo apt upgrade
    sudo apt install nodejs npm nginx yarn
    sudo chown -R $(whoami) ~/.npm
    sudo npm i -g pm2
    pm2 list
    sudo systemctl enable nginx
    sudo ufw allow ssh
    sudo ufw allow http
    sudo ufw allow https
    sudo ufw enable