To deploy an app in CloudFoundry
I am following below steps
1. authenticate to the PaaS
2. create the application
3. create a route for the application
4. associate the route with the application
5. upload the application bits
6. start the app
I am using cloudfoundry_client
module and first step is cleared and next
cl=cloudfoundry_client.CloudFoundryClient("https://api.run.pivotal.io")
cl.init_with_credentials("my uname","mypwd")
data={'name':"test_app1","space_guid":'e989f5b4-b4ad-4129-84d7-44909b992e93',"diego":True}
cl.application._create(data)
#successfully created app I have checked in cf cli
#successfully Associated the route with app also
Now I have to upload my app files which are in a zip file. I don't know how to do it. from the CloudFoundry API
I ended up with https://apidocs.cloudfoundry.org/226/apps/uploads_the_bits_for_an_app.html , I don't know how to upload my files.