Thursday, November 27, 2014

Bluemix troubleshooting -> A WAR application cannot be pushed by using the cf push command

You might not be able to use the cf push command to deploy an archived web application to Bluemix if the application location is not specified correctly.

When you upload a WAR application to Bluemix by using the cf push command, you see the error message, Staging error: cannot get instances since staging failed.
This problem might happen if the WAR file is not specified, or if the path to the WAR file is not specified.
Use the -p option to specify a WAR file or add the path to the WAR file. For example:
cf push MyUniqueAppName01 -p app.war cf push MyUniqueAppName02 -p "./app.war"
For more information about the cf push command, enter cf push -h.

No comments:

Post a Comment