Skip to content

Instantly share code, notes, and snippets.

@itxtoledo
Last active June 13, 2020 23:31
Show Gist options
  • Save itxtoledo/4e84fc29ee6b15702e691a0befbeec4a to your computer and use it in GitHub Desktop.
Save itxtoledo/4e84fc29ee6b15702e691a0befbeec4a to your computer and use it in GitHub Desktop.
Instalar pacotes para deploy de uma API Node.js com NGINX e PM2
#!/bin/bash
# executar com sudo
# wget -O - thisUrl | bash
apt-get install apt-transport-https -y
apt-get update -y && apt-get upgrade -y && apt-get install curl -y
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
apt-get update && apt-get install software-properties-common -y && add-apt-repository universe && add-apt-repository ppa:certbot/certbot && apt-get update -y && apt-get install certbot python3-certbot-nginx yarn nginx git -y --allow-unauthenticated && apt-get autoremove -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment