|
1 |
| -# AngularJS Full-Stack generator [](http://travis-ci.org/DaftMonk/generator-angular-fullstack) [](https://gitter.im/DaftMonk/generator-angular-fullstack) |
| 1 | +# AngularJS Full-Stack generator [](http://travis-ci.org/DaftMonk/generator-angular-fullstack) |
2 | 2 |
|
3 | 3 | > Yeoman generator for creating MEAN stack applications, using MongoDB, Express, AngularJS, and Node - lets you quickly set up a project following best practices.
|
4 | 4 |
|
@@ -78,6 +78,7 @@ Available generators:
|
78 | 78 | * Deployment
|
79 | 79 | - [angular-fullstack:openshift](#openshift)
|
80 | 80 | - [angular-fullstack:heroku](#heroku)
|
| 81 | + - [angular-fullstack:cloudfoundry](#cloudfoundry) |
81 | 82 |
|
82 | 83 | ### App
|
83 | 84 | Sets up a new AngularJS + Express app, generating all the boilerplate you need to get started.
|
@@ -291,6 +292,36 @@ Commit and push the resulting build, located in your dist folder:
|
291 | 292 | grunt buildcontrol:heroku
|
292 | 293 |
|
293 | 294 |
|
| 295 | +### Cloud Foundry / Pivotal Web Services |
| 296 | + |
| 297 | +Deploying to Cloud Foundry can be done with these steps. |
| 298 | + |
| 299 | + yo angular-fullstack:cloudfoundry |
| 300 | + |
| 301 | +To work with your new Cloud Foundry app using the command line, you will need to run any `cf` commands from the `dist` folder. |
| 302 | + |
| 303 | + |
| 304 | +If you're using mongoDB you will need to create a service (MongoLab) and bind it to your app: |
| 305 | + |
| 306 | + cf create-service mongolab sandbox my-mongo |
| 307 | + cf bind-service my-app my-mongo |
| 308 | + |
| 309 | +> |
| 310 | +> If you're using any oAuth strategies, you must set environment variables for your selected oAuth. For example, if we're using **Facebook** oAuth we would do this : |
| 311 | +> |
| 312 | +> cf set-env my-app FACEBOOK_ID id |
| 313 | +> cf set-env my-app FACEBOOK_SECRET secret |
| 314 | +> |
| 315 | +
|
| 316 | +#### Pushing Updates |
| 317 | + |
| 318 | + grunt |
| 319 | + |
| 320 | +Deploy the resulting build, from your `dist` folder: |
| 321 | + |
| 322 | + cf push |
| 323 | + |
| 324 | + |
294 | 325 | ## Bower Components
|
295 | 326 |
|
296 | 327 | The following packages are always installed by the [app](#app) generator:
|
|
0 commit comments