https://github.com/roozenboom/ng-deploy-cloudfoundry
Deploy Angular apps to CloudFoundry using the Angular CLI
https://github.com/roozenboom/ng-deploy-cloudfoundry
angular angular-cli cloud-foundry-cli
Last synced: 12 months ago
JSON representation
Deploy Angular apps to CloudFoundry using the Angular CLI
- Host: GitHub
- URL: https://github.com/roozenboom/ng-deploy-cloudfoundry
- Owner: Roozenboom
- License: mit
- Created: 2019-10-01T19:06:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:51:03.000Z (about 3 years ago)
- Last Synced: 2025-03-17T18:05:13.623Z (about 1 year ago)
- Topics: angular, angular-cli, cloud-foundry-cli
- Language: TypeScript
- Homepage:
- Size: 928 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ng-deploy-cloudfoundry
[](https://www.npmjs.com/package/ng-deploy-cloudfoundry)
[](http://opensource.org/licenses/MIT)
**Deploy Angular apps to CloudFoundry using the Angular CLI**
## Quick start
1. Install the latest version of Angular cli
```sh
yarn global add @angular/cli
```
1. Create a new Angular project
```sh
ng new hello-world --defaults
cd hello-world
```
1. Add `ng-deploy` to your project
```sh
ng add ng-deploy-cloudfoundry
```
1. Deploy your project to CloudFoundry.
```sh
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
- If you don't have the cf CLI installed, [follow these instructions](https://docs.cloudfoundry.org/cf-cli/install-go-cli.html)
### 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:
```sh
ng deploy --no-build --random-route
```