Auto_Deploy is a script that automatically deploys a nodejs project from github to an Ubuntu server
on Amazon AWS
These project uses:
pm2
An advanced process manager for production Node.js applications.nginx
A web server used as a reverse proxyCertbot
Automatically enable HTTPS on your website with EFF's Certbot, deploying Let's Encrypt certificates.
- The following configurations for security groups should be used when setting up an instance:
- set
type
:HTTP
tosource
ofAnywhere
- set
type
:HTTPS
tosource
ofAnywhere
- set
type
:Custom TCP
toport
:8000 ofsource
:MY IP
- set
type
:SSH
tosource
ofMY IP
- Clone the repository and cd into it
git clone https://github.com/Davitron/Auto_Deploy.git cd Auto_Deploy
- Add the required environment variables to the
declareEnv
function fromline 16 to 19
- Specified the domain names in the
configureNGINX
function located in thedeploy.sh
function - To run the script, run
bash deploy.sh