0.1.2 • Published 4 years ago

ng-deploy-cloudfoundry v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

ng-deploy-cloudfoundry

NPM version The MIT License

Deploy Angular apps to CloudFoundry using the Angular CLI

Quick start

  1. Install the latest version of Angular cli

    yarn global add @angular/cli
  2. Create a new Angular project

    ng new hello-world --defaults
    cd hello-world
  3. Add ng-deploy to your project

    ng add ng-deploy-cloudfoundry
  4. Deploy your project to CloudFoundry.

    ng run hello-world:deploy

Requirements

To use the Cloud Foundry deploy command you need the Cloud Foundry CLI, Angular CLI and an Angular project (v8.3.0 or greater)

Cloud Foundry CLI

Angular CLI

  • Run ng --version to check the version, you need version 8 or greater of the Angular CLI
  • If necessary upgrade your project with ng update @angular/cli @angular/core

Usage

You can adjust your deployment with options.

The available options are:

  • --configuration (-c) - A named build target, as specified in the "configurations" section of angular.json
  • --no-build - Skip build process during deployment
  • --random-route - Generate a random unique route for the deployed application

Example:

ng deploy --no-build --random-route