ngx-ec2-deploy
TypeScript icon, indicating that this package has built-in type declarations

2.1.901 • Public • Published

NGX-EC2-DEPLOY

☁️🚀 Deploy your Nodejs app to Amazon EC2 directly from the Angular CLI 🚀☁️

Quick Start

  1. Install the latest version of Angular cli
 
 yarn global add @angular/cli
 
  1. Create a new Angular project
 
ng new hello-world --defaults
 
cd hello-world
 
  1. Add ngx-ec2-deploy to your project
 
 yarn add ngx-ec2-deploy
 
  1. 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"
      }
    }
  }
  1. 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

MIT

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Akash Gupta

💻 🖋 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

Package Sidebar

Install

npm i ngx-ec2-deploy

Weekly Downloads

1

Version

2.1.901

License

MIT

Unpacked Size

17.4 kB

Total Files

18

Last publish

Collaborators

  • akash-gupta