ngx-ec2-deploy
v2.1.901
Published
Deploy Nestjs app to Amazon EC2 directly from the Angular CLI
Downloads
35
Maintainers
Readme
NGX-EC2-DEPLOY
☁️🚀 Deploy your Nodejs app to Amazon EC2 directly from the Angular CLI 🚀☁️
Quick Start
- Install the latest version of Angular cli
yarn global add @angular/cli
- Create a new Angular project
ng new hello-world --defaults
cd hello-world
- Add
ngx-ec2-deploy
to your project
yarn add ngx-ec2-deploy
- After these step your
angular.json
is update with a new builder:
"deploy": {
"builder": "ngx-ec2-deploy:deploy",
"options": {
"production": {
"host": "ec2-3-6-122-80.ap-south-1.compute.amazonaws.com",
"username": "ec2-user",
"remotePath": "scripts",
"privateKey": "ssh/voopik-mumbai.pem",
"postDeploy": "sudo pm2 restart all"
}
}
}
- Run
ng deploy
to deploy your application to Amazon EC2.
🚀**Happy deploying!** 🚀
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
The builder is located in the builder
folder.
Please make sure to update tests as appropriate.
License
Contributors ✨
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!