Automate setup and deployment of full-stack apps to VM services like AWS EC2, Azure, Digital Ocean...etc.
- Copy init.sh to the running vm instance or as a startup script.
- Update the 'domain_name' and 'email_address' variables to reflect your preferred domain name and email address you wish for Certbot to use for your SSL certificate. Run
./init.sh
- SSH into your VM and copy the contents of
~/.ssh/id_ed25519.pub
to your GitHub SSH Keys. This will allow the VM to update the deployed app to the newest version. - In the VM, navigate to the
~/app
folder. Clone the application's repository using the SSH method eg.git clone git@github.com:merogersdev/dev-portfolio.git
- Navigate to backend folder eg.
cd ./backend
and copyenv.example
to.env
and populate the necessary environment variables. - Run
deploy.sh
to deploy app.