Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-04T04:51:03.000Z (over 1 year ago)
- Last Synced: 2024-09-29T07:41:19.629Z (about 2 months 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
[![NPM version](https://img.shields.io/npm/v/ng-deploy-cloudfoundry?style=flat-square)](https://www.npmjs.com/package/ng-deploy-cloudfoundry)
[![The MIT License](https://img.shields.io/badge/license-MIT-orange.svg?color=blue&style=flat-square)](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 applicationExample:
```sh
ng deploy --no-build --random-route
```