IBM-Cloud / get-started-python

A Python application and tutorial that use Flask framework to provide a REST API to receive requests from the UI. The API then persists the data to a Cloudant database.
https://console.ng.bluemix.net/docs/runtimes/python/getting-started.html
Apache License 2.0
121 stars 445 forks source link

No org targeted, use 'cf target -o ORG' to target an org on 'cf push' #34

Open weiss-d opened 3 years ago

weiss-d commented 3 years ago

Hi, everyone! Just tried to follow the instructions from README. Using Cloud Foundry CLI under Linux. This was the result. Does it still need some additional steps IBM Cloud configuration, or this repo is already outdated?

get-started-python on  master via 🐍 v3.9.2
❯ cf api https://api.eu-de.bluemix.net/                                                                                                                                                  INSERT
Setting API endpoint to https://api.eu-de.bluemix.net/...
OK

API endpoint:   https://api.eu-de.bluemix.net/
API version:    3.96.0

Not logged in. Use 'cf login' or 'cf login --sso' to log in.

get-started-python on  master via 🐍 v3.9.2
❯ cf login
API endpoint: https://api.eu-de.bluemix.net/

Email: ######@####.##
Password:

Authenticating...
OK

API endpoint:   https://api.eu-de.bluemix.net
API version:    3.96.0
user:           ######@####.##
No org or space targeted, use 'cf target -o ORG -s SPACE'

get-started-python on  master via 🐍 v3.9.2
❯ cf push
No org targeted, use 'cf target -o ORG' to target an org.
FAILED
data-henrik commented 3 years ago

I am not sure who maintains this repo. IBM Cloud uses the "ibmcloud" CLI command. Cloud Foundry is handled using ibmcloud cf.

weiss-d commented 3 years ago

@data-henrik thanks for the clue!