You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's tedious to keep having to specify the app name and other variables each time we push our app. That's where a `manifest.yml` file comes in handy. It holds all the configuration for our app so that Cloud Foundry will know what to do with it. Create a `manifest.yml` file in the root folder of your app and add the following content (don't forget to replace the "my-java-app" with your creative appname and hostname again):
```yaml
---
applications:
- name: my-java-app
memory: 1G
instances: 1
buildpack: java_buildpack
path: build/libs/cf-sample-app-java-1.0.0.jar
routes:
- route: my-random-hostname.scapp.io
services:
- my-redis-service
```
The file tells Cloud Foundry that this is an application with the name `my-java-app` and the specifications made above. This means that from now on, you'll be able to push your App with the simple command:
<preclass="terminal">
$ cf push
</pre>
You can define many more variables in a manifest file. To find more information about application manifests, go to the <ahref="../devguide/deploy-apps/manifest.html" target="_blank">About Apps</a> part of this documentation.
<divstyle="text-align:center;margin:3em;">
<ahref="./next-steps.html" class="btn btn-primary">I've added a manifest</a>