Reputation: 294
I have code residing in my local machine ( windows), and I am trying to deploy it with CLI. I successfully logged into the bluemix but while entering cf push command it is giving following error :
NO org and space targeted, use 'cf target -o ORG -s SPACE' to target and org and space.
I am not sure how shall I proceed here, any help will be appreciated.
Upvotes: 0
Views: 355
Reputation: 111
One similar issue is already addressed by Bluemix support:
If issue is coming while running cf push...can you provide the logs generated using
"cf logs app_name --recent"
Upvotes: 0
Reputation: 697
You'll need to run the command specified, filling in values for ORG and SPACE.
ORG is most likely the same as your email address you logged in with, and SPACE is most likely "dev". So if your email is [email protected], the command to run is:
cf target -o [email protected] -s dev
There's some information on CloudFoundry orgs and spaces here: http://docs.cloudfoundry.org/concepts/roles.html
Upvotes: 2