Unable to Push Node.js Apps to CloudFoundry

264 views Asked by At

I registered for a CloudFoundry account and I'm able to login to the website with my registered credentials. However, when I try to use those credentials to login via vmc I get a connection refused:

MyComputer$ vmc login
Attempting login to [http://api.vcap.me]
Email: <*[email protected]*>
Password: *******
Problem with login to 'http://api/vcap', HTTP exception: Errno::ECONNREFUSED:Connection refused - connect(2), try again or register for an account.

I assume that I need to be logged in to push because I also had the following error:

MyComputer$ vmc push
Would you like to deploy from the current directory? [Yn]: 
Application Name: myapp
HTTP exception: Errno::ECONNREFUSED:Connection refused - connect(2)

Is anyone else encountering this issue?

1

There are 1 answers

0
Glenn Oppegard On

It shows that you're connecting to api.vcap.me, which is typically used for a Cloud Foundry instance running on your local machine that you've installed from the source code. To push apps to CF.com, target it with vmc first:

vmc target https://api.cloudfoundry.com
vmc login [email protected]