Skip to content

Deploy to AWS Lightsail

Ariadna125 edited this page Apr 17, 2023 · 9 revisions

aqui va la info bien, lo pondré en la tarde

echo "*** Step: *** prepare to add new deb sources for postgres and node" sudo apt update sudo apt -y install gnupg2

echo "*** Step: *** Install postgresql client" wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' sudo apt update sudo apt -y install postgresql-client-14

echo "*** Step: *** Install node" curl -fsSL https://deb.nodesource.com/setup_16.x | sudo bash - sudo apt -y install nodejs gcc g++ make

Prepare Lightsail instance:

Assign a domain with SSL (https://)

Set up secrets, keys and other environment variables

Setup the Lightsail instance

"CODIGO: explicación a modificar"

sudo apt update
sudo apt -y install gnupg2

echo "*** Step: *** Install postgresql client"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
sudo apt update
sudo apt -y install postgresql-client-14

echo "*** Step: *** Install node"
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo bash -
sudo apt -y install nodejs gcc g++ make```