Last active
June 13, 2020 23:31
-
-
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
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
#!/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