Coder Social home page Coder Social logo

heroku-accounts's Introduction

Deprecated

This project is deprecated and is no longer being maintained.

Please check out my current project Convox for all of your deployment needs!

heroku-accounts's People

Contributors

alexdowad avatar d-tw avatar ddollar avatar geemus avatar koenpunt avatar matthewtodd avatar mbaltaks avatar rodel30 avatar searls avatar taavo avatar tt avatar youngbrioche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-accounts's Issues

Error setting a different account

→ h accounts
personal
* work
→ h accounts:set personal
error: could not lock config file .git/config: No such file or directory

 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       undefined method `each' for nil:NilClass (NoMethodError)
    Backtrace:   /Users/raulb/.heroku/plugins/heroku-accounts/lib/accounts/heroku/command/accounts.rb:109:in `set'
                 /Users/raulb/.heroku/client/lib/heroku/command.rb:207:in `run'
                 /Users/raulb/.heroku/client/lib/heroku/cli.rb:28:in `start'
                 /usr/local/heroku/bin/heroku:24:in `<main>'

    Command:     heroku accounts:set personal
    Plugins:     heroku-accounts
                 heroku-config
                 heroku-fork
                 heroku-multikernel
                 heroku-orgs
                 heroku-sudo
                 manager-cli

    Version:     heroku-toolbelt/2.34.0 (x86_64-darwin10.8.0) ruby/1.9.3

Not sure if this is a big deal since I could do:

→ h accounts:default personal

do whatever is necessary

→ h accounts:default work

Issue when auto creating account

I get the following error when I try to create and account with the auto option enabled

Brian-Rojass-MacBook-Pro:~ brojas$ heroku accounts:add personal --auto
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden): 
Generating new SSH key
Too many arguments.
usage: ssh-keygen [options]
Options:
  -A          Generate non-existent host keys for all key types.
  -a trials   Number of trials for screening DH-GEX moduli.
  -B          Show bubblebabble digest of key file.
  -b bits     Number of bits in the key to create.
  -C comment  Provide new comment.
  -c          Change comment in private and public key files.
  -e          Export OpenSSH to foreign format key file.
  -F hostname Find hostname in known hosts file.
  -f filename Filename of the key file.
  -G file     Generate candidates for DH-GEX moduli.
  -g          Use generic DNS resource record format.
  -H          Hash names in known_hosts file.
  -h          Generate host certificate instead of a user certificate.
  -I key_id   Key identifier to include in certificate.
  -i          Import foreign format to OpenSSH key file.
  -L          Print the contents of a certificate.
  -l          Show fingerprint of key file.
  -M memory   Amount of memory (MB) to use for generating DH-GEX moduli.
  -m key_fmt  Conversion format for -e/-i (PEM|PKCS8|RFC4716).
  -N phrase   Provide new passphrase.
  -n name,... User/host principal names to include in certificate
  -O option   Specify a certificate option.
  -P phrase   Provide old passphrase.
  -p          Change passphrase of private key file.
  -q          Quiet.
  -R hostname Remove host from known_hosts file.
  -r hostname Print DNS resource record.
  -S start    Start point (hex) for generating DH-GEX moduli.
  -s ca_key   Certify keys with CA key.
  -T file     Screen candidates for DH-GEX moduli.
  -t type     Specify type of key to create.
  -V from:to  Specify certificate validity interval.
  -v          Verbose.
  -W gen      Generator to use for generating DH-GEX moduli.
  -y          Read private key file and print public key.
  -z serial   Specify a serial number.
Adding entry to ~/.ssh/config
Adding public key to Heroku account: [email protected]
 !    No account specified.
 !    
 !    Run this command with --account <account name>
 !    
 !    You can also add it as a git config attribute with:
 !      git config heroku.account work

Appears to be an issue with the way ssh-keygen is called, anybody have any idea why this would be happening or a quick fix?

Error in ubuntu with rvm 12.04

Do you know how can I fix this?

Error:       uninitialized constant Heroku::Command::Base (NameError)
Backtrace:   /usr/local/heroku/lib/heroku/command/accounts.rb:4:in `<top (required)>'
             /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
             /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
             /usr/local/heroku/lib/heroku/command.rb:15:in `block in load'
             /usr/local/heroku/lib/heroku/command.rb:14:in `each'
             /usr/local/heroku/lib/heroku/command.rb:14:in `load'
             /usr/local/heroku/lib/heroku/cli.rb:24:in `start'
             /usr/bin/heroku:26:in `<main>'

Command:     heroku 
Version:     heroku-toolbelt/2.28.12 (x86_64-linux) ruby/1.9.3

Heroku default app in git config broken when used in combination with multiple accounts

Using heroku.remote in a project's git config to specify the default app when running heroku commands doesn't work for me.

I believe, the issue stems from the fact the heroku gem uses "heroku.com" to look for heroku remotes and heroku-accounts adds remotes that do not contain "heroku.com".

I would try setting ENV['HEROKU_HOST'] but can't because this is used when connecting to heroku as well as scanning remotes.

Git Config For Heroku Client

$ git config heroku.remote
staging

Git Remotes

$ git remote -v
staging [email protected]:app-name.git (fetch)
staging [email protected]:app-name.git (push)

SSH Config generated by heroku-accounts

Host heroku.logi.cl
  HostName heroku.com
  IdentityFile ~/.ssh/identity.heroku.logi.cl
  IdentitiesOnly yes

Other Info

ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.7.3]
heroku (2.3.6)

heroku-accounts doesn't have versions but the version I have locally is @e05e857.

If I have missed anything out please let me know, I'll be happy to provide more information.

Many thanks,
James

Syntax error from heroku_rack/lib/console.rb on certain accounts

I get the following error with one of my accounts:

~ $ heroku console --app myapp --account myaccount
SyntaxError: compile error
/home/heroku_rack/lib/console.rb:145: syntax error, unexpected tIDENTIFIER, expecting kDO or '{' or '('
--account myaccount
                  ^

I think it could be due to some characters in the SSH key path, which has hyphens and stuff, but I'm not sure.

accounts:add name --auto broken no such file error

I tried doing heroku accounts:add impactenergies --auto

That allowed me to enter my Email and Password.

After entering the password it says

"Generating new SSH key
Generating public/private rsa key pair.
open ~/.ssh/identity.heroku.impactenergies failed: No Such file or directory.
Saving the key failed: ~/.ssh/identity.heroku.impactenergies.
Adding entry to ~/.ssh/config
Adding public key to Heroku account: [email protected]
C:/Users/Me/.heroku/plugins/heroku-accounts/lib/ext/heroku.command/accounts.rb:60: in 'read': No such file or directory - c:/Users/Me/.ssh/identity.heroku.impactenergies.pub (Errno::ENOENT)"

I looked in .ssh and neither of those files were generated. I also tried the manual way and setting the path to the keys manually but when I do and type heroku accounts, I get an uninitialized constant error that is reported in a different issue. And when I try choosing an account by default in order to fix that, it says that my accounts don't exist.

I'm using Windows Vista in case that makes a difference.

Your key with fingerprint is not authorized to access

Hi.

In my previous project I used heroku-accounts without any problem, after having first created the project under another account.

This time I created another project using my new default account (new_account in the following).
This error appears when I try to push: Your key with fingerprint is not authorized to access project.
git is configured with the heroku.new_account hostname, as for the ~/.ssh/config.

The fingerprints is the one from my default key (ssh-keygen -l), used on both heroku accounts.

The strange thing is:

bin/heroku keys
No keys for new_account

bin/heroku keys:add
Found the following SSH public keys:
1) github_rsa.pub
2) id_rsa.pub
Which would you like to use with your Heroku account? 2
Uploading SSH public key /Users/me/.ssh/id_rsa.pub
 !    Fingerprint already exists. Please use one SSH key per Heroku account

~/.netrc contents not updated when switching accounts

Hi, I noticed that the contents of the file ~/.netrc do not change when I do heroku accounts:set acc_name.
Is this normal?

I see I still have my API keys stored in ~/.heroku/accounts/acc_name, and also I have the different SSH keys specified in ~/.ssh/config.

Force plugin uninstall

How do I force plugin uninstall? Since I have this problem too: #20 and I can't figure out how to fix it, I can't even uninstall the plugin because of this problem that makes any "heroku" command fail.
Is it dangerous to delete plugin folder?

Fingerprint issue

I'm pushing to my work account and it keeps wanting to use my personal key http://pastie.org/5518099

I've set my account to work, done a heroku keys and removed all but the one I just added for work and still have the issue. Is this is a bug here?

Your key with fingerprint XX:XX... is not authorized to access

I just created a new account with the latest version of the plugin and it is not working. My other apps with the code from before the last push of code is working perfectly.

When I add the multi account and then follow the directions to heroky accounts:add XYZ --auto it creates the key pair and uploads.

When I hit heroku keys I can see the key there. I have even completed a heroku keys:add ~/.ssh/identity.heroku.appname.pub and still I get an error when I try and push to heroku.

When I git remote show I can see heroku in that list too.

Can not tell what is wrong here.

undefined method `extract_option'

When trying to add a new account I encounter this error

/.heroku/plugins/heroku-accounts/lib/ext/heroku/command/accounts.rb:45:in add': undefined methodextract_option' for #Heroku::Command::Accounts:0x00000100dae188 (NoMethodError)

Bad owner or permissions on /Users/username/.ssh/config

This is a great plugin till I got to the point of pushing to heroku.

I installed the plugin as per the instructions in the README file created two accounts one called personal and one called dlab. I tested my personal account with an app that I already had working and all seems to work as expected.

I created a new rails app added git switched to dlab user and then ran $> heroku create myapp. Creating the app worked fine so I grabbed the heroku git address that was created and did git remote add heroku "" Then when I did git push heroku master I got the following message "Bad owner or permissions on /Users/username/.ssh/config" message.

Plugin causes other commands like logs to fail

The plugin does what it says it does, so switching between identify is easy. However, after using this plugin, git logs doesn't seem to work anymore. The output is empty all the time.

Wrong key being used?

I've been using heroku accounts to manage two client accounts, I've just created a personal account and tried to deploy my app and I am getting this error:

 $ git push heroku master                                                                                                               4:56:09

  !  Your key with fingerprint xxxx is not authorized to access <my-app-name>.

  fatal: Could not read from remote repository.

  Please make sure you have the correct access rights

Curiously ssh agent prompts me to enter the passphrase for my default ssh account wich is not the one I added to this heroku account.

Sorry if I don't provide enough info, I don't know wheter I am doing something wrong or what might it be.

Heroku::Client#deprecate is deprecated

thanks for this gem, it is exactly what i was looking for.

having updated to using the heroku toolbelt from whatever heroku gem i was using before, i am getting this deprecation:

$ heroku accounts:add eric --auto
   [ lots of output]
Adding entry to ~/.ssh/config
Adding public key to Heroku account: [email protected]
 !    DEPRECATED: Heroku::Client#deprecate is deprecated, please use the heroku-api gem.
 !    DEPRECATED: More information available at https://github.com/heroku/heroku.rb
 !    DEPRECATED: Deprecated method called from /usr/local/heroku/lib/heroku/client.rb:214.

$ heroku --version
heroku-toolbelt/2.30.2 (universal-darwin11.0) ruby/1.8.7

$ ruby --version
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]

After Auto Account creation "heroku accounts" says no accounts found

Thank you for fixing the windows bug. I'm not longer getting an error with:

heroku accounts:add test --auto

Everything appears to work correctly.

But when I do "heroku accounts"

I get

"No accounts found.
No account specified,"

I tried setting a default as another user suggested got the same no accounts message.

heroku accounts:set test

gives me

"That account does not exist."

Again, I'm using windows vista.

Had to 'git push origin master' instead of 'git push heroku master'

Assuming an existing heroku app where your remote is under 'heroku' and not 'origin', this causes a lot of confusion.

$ heroku accounts:add foo --auto
$ cd /path/to/my/app
$ heroku accounts:set foo
$ git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
$ git push origin master
Everything up-to-date

The README should make it clearer that the 'heroku accounts:set foo' command adds a remote to 'origin' and not 'heroku' (as is standard with most heroku git repos). I was pulling my hair out for nearly an hour trying to figure out why I could do everything BUT push until I thought to look in .git/config in the apps root dir.

heroku apps doesnt work now :(

when i installed this plugin the command 'heroku apps' stopped to work here what im getting:

heroku apps
 !    No account specified.
 !    
 !    Run this command with --account <account name>
 !    
 !    You can also add it as a git config attribute with:
 !      git config heroku.account work

Install fails unless .heroku/plugins dir exists

$ heroku plugins:install git://github.com/ddollar/heroku-accounts.git

Results in:

Installing heroku-accounts... failed
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       No such file or directory - /Users/alex/.heroku/plugins (Errno::ENOENT)
    Backtrace:   /usr/local/heroku/lib/heroku/plugin.rb:117:in `chdir'
                 /usr/local/heroku/lib/heroku/plugin.rb:117:in `install'
                 /usr/local/heroku/lib/heroku/command/plugins.rb:45:in `install'
                 /usr/local/heroku/lib/heroku/helpers.rb:232:in `action'
                 /usr/local/heroku/lib/heroku/command/plugins.rb:44:in `install'
                 /usr/local/heroku/lib/heroku/command.rb:178:in `send'
                 /usr/local/heroku/lib/heroku/command.rb:178:in `run'
                 /usr/local/heroku/lib/heroku/cli.rb:19:in `start'
                 /usr/bin/heroku:25

    Command:     heroku plugins:install git://github.com/ddollar/heroku-accounts.git
    Version:     heroku-toolbelt/2.28.7 (universal-darwin11.0) ruby/1.8.7

Can be fixed by:

mkdir ~/.heroku/plugins

Not sure if it's the responsibility of the plugin or the heroku command to ensure this directory exists.

Permission denied (publickey)

What am I doing wrong?

git push -u origin master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

--auto isn't automated

heroku-gem/2.30.3 (i686-linux) ruby/1.9.3

$ heroku accounts:add work --auto
Enter your Heroku credentials.
Email: ...
Password (typing will be hidden): 

Add the following to your ~/.ssh/config

Host heroku.work
  HostName heroku.com
  IdentityFile /PATH/TO/PRIVATE/KEY
  IdentitiesOnly yes

heroku commands not works

enders-MacBook-Pro:myexlob ender$ heroku plugins:install git://github.com/ddollar/heroku-accounts.git
No such account: personal

is it normal?

git to heroku is hanging!

Hi,

There is no problem when I do:
$ git push origin master
Everything up-to-date

But it hangs when i try to remote to hero repo:
$ git push heroku master
ssh: connect to host heroku.com port 22: Bad file number
fatal: The remote end hung up unexpectedly

I'm using windows7 64 bit but I don't think that should make any difference. I'm behind firewall but then if that was the problem my attempt in connecting to github should have failed too. So I don't think that is the problem. I've googled this extensively but could not get an answer.

Can someone please help me with this? I'm unable to deploy my ruby app to heroku because of this.

Undefined method `api' for Heroku::Auth:Class

Hi guys!

I've got an error while creating a new account:

Adding public key to Heroku account: [email protected]
/home/user/.heroku/plugins/heroku-accounts/lib/accounts/heroku/command/accounts.rb:65:in `add': undefined method `api' for Heroku::Auth:Class (NoMethodError)
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/gems/heroku-2.25.0/lib/heroku/command.rb:148:in `run'
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/gems/heroku-2.25.0/lib/heroku/cli.rb:9:in `start'
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/gems/heroku-2.25.0/bin/heroku:16:in `<top (required)>'
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/bin/heroku:19:in `load'
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/bin/heroku:19:in `<main>'
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/bin/ruby_noexec_wrapper:14:in `eval'
from /home/user/.rvm/gems/ruby-1.9.3-p194@project/bin/ruby_noexec_wrapper:14:in `<main>'

Not able to create accounts

$ heroku plugins:install git://github.com/ddollar/heroku-accounts.git
Installing heroku-accounts... failed
! Heroku client internal error.
! Search for help at: https://help.heroku.com
! Or report a bug at: https://github.com/heroku/heroku/issues/new

Error:       No such file or directory - /home/icicle/.heroku/plugins (Errno::ENOENT)
Backtrace:   /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/plugin.rb:117:in `chdir'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/plugin.rb:117:in `install'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/command/plugins.rb:45:in `install'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/helpers.rb:232:in `action'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/command/plugins.rb:44:in `install'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/command.rb:178:in `send'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/command.rb:178:in `run'
             /var/lib/gems/1.8/gems/heroku-2.28.7/lib/heroku/cli.rb:19:in `start'
             /var/lib/gems/1.8/gems/heroku-2.28.7/bin/heroku:16
             /var/lib/gems/1.8/bin/heroku:19:in `load'
             /var/lib/gems/1.8/bin/heroku:19

Command:     heroku plugins:install git://github.com/ddollar/heroku-accounts.git
Version:     heroku-gem/2.28.7 (i686-linux) ruby/1.8.7

API Key Reset Authentication Issue

So in response to a question on StackOverflow - I clicked on Regenerate API token in the Heroku site.

I was then prompted to authenticate via the Heroku CLI as you'd expect however I was unable to successfully authenticate. Support had me to delete the .heroku folder which got it back working. In digging I found that the ./heroku/accounts/ stores the key (old one) against my email address. Removing this allowed it to work.

Not sure if this is something that the plugin needs to handle or at least make a note in the release notes about this behaviour in the event of resetting your API key???

John.

not working with other plugins

I used this plugin with other plugins like manager, heroku-pipeline and none of those plugins get the correct API key when I specify --account <accountname>. Here's a simple example with the auth:token command:

>heroku auth:token --account dotversion
a6f4f946207....56b7f9a0deb5
:~ >heroku auth:token --account heroku
a6f4f946207....56b7f9a0deb5:

The API Key returned by two different accounts is exactly the same.

uninitialized constant if no accounts configured yet

After installing, I run 'heroku accounts' before adding any accounts and I get:

/Users/XYZ/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:22:in `extract_account': uninitialized constant Heroku::Auth::CommandFailed (NameError)

"No such account" trouble

I got part way to getting this to work, and decided I needed to start over. After removing one of the accounts that I added, I get "No such account: personal" for all heroku commands. I tried removing both ~/.heroku and ~/.ssh/config but when I reinstall, I seem to always get "No such account" again.

Can't figure out how to start again. Anyone have any idea?

account not set correctly

I followed the installation instruction. But it appears git push is still using my other account credential

$ uname -a
Darwin 192-168-1-7.com.au 10.7.3 Darwin Kernel Version 10.7.3: Sun Mar  6 13:37:56 PST 2011; root:xnu-1504.14.2~1/RELEASE_X86_64 x86_64

$ ssh -V
OpenSSH_5.2p1, OpenSSL 0.9.8l 5 Nov 2009

$ ls ~/.ssh/
config id_rsa id_rsa.pub identity.heroku.personal identity.heroku.personal.pub known_hosts

$ cat ~/.ssh/config
Host heroku.personal
  HostName heroku.com
  IdentityFile ~/.ssh/identity.heroku.personal
  IdentitiesOnly yes

$ cd app
$ heroku accounts:set personal
$ git push heroku master

 !  [email protected] not authorized to access floating-tiger-378

fatal: The remote end hung up unexpectedly

"No account specified" when adding account

When I try to add an account, it fails to complete the add function:

Titus:~/project$ heroku accounts
No accounts found.
Titus:~/project$ heroku accounts:add project --auto
Enter your Heroku credentials.
Email: [email protected]
Password (typing will be hidden): 
Generating new SSH key
Generating public/private rsa key pair.
Your identification has been saved in /Users/dinomite/.ssh/identity.heroku.project.
Your public key has been saved in /Users/dinomite/.ssh/identity.heroku.project.pub.
The key fingerprint is:
29:1e:c7:57:54:03:22:2b:51:51:b0:4e:1a:f0:ad:9f [email protected]
The key's randomart image is:
+--[ RSA 2048]----+
|    . ..=+o ooo  |
|     o o + o   . |
|      + =   .    |
|       O . .     |
|      = S .      |
|     . = o       |
|      . E        |
|                 |
|                 |
+-----------------+
Adding entry to ~/.ssh/config
Adding public key to Heroku account: [email protected]
 !    No account specified.
 !    
 !    Run this command with --account <account name>
 !    
 !    You can also add it as a git config attribute with:
 !      git config heroku.account work

Generated .ssh/config file doesn't work

I'm running Windows XP and git 1.7.0.2.mysysgit.0 with OpenSSH_4.6p1. The options which heroku-accounts adds to ".ssh/config" don't work with this version of SSH.

The heroku-accounts documentation say that ".ssh/config" should have something like this:

Host heroku.myappname
HostName heroku.com

When I "git push heroku master", SSH doesn't recognize that the options I want are under "heroku.myappname". So it ignores the generated SSH key file, and uses "id_rsa" instead. So the push fails with a "publickey" error.

If I change it to "Host heroku.com", it works.

Adding account error with -auto

Adding public key to Heroku account: xxx
! No account specified.
!
! Run this command with --account
!
! You can also add it as a git config attribute with:
! git config heroku.account work

Authentication failed

Hey,

I am using the latest heroku accounts with heroku-toolbelt/2.31.4. From one day to another, without me changing anything on the system, running any heroku command e.g. heroku run console, would tell me that the authentication failed and prompt me for user/pass.
First I thought this was an heroku related issue. But as I now found out, everyhting worked fine again as I removed the accounts plugin.

Nothing special about the output, I guess:
$ heroku run console
Running console attached to terminal... Authentication failure
Enter your Heroku credentials.

Cheers
Christopher

extract_account': No account specified

When i launch that command i get the following error (I'm on ubuntu) :

$> heroku accounts:add personal
/home/****/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:22:in `extract_account': No account specified. (Heroku::Command::CommandFailed)

Run this command with --account
You can also add it as a git config attribute with:
git config heroku.account work
from /home/thomas/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:35:in fetch_from_account' from /home/thomas/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:5:inuser'
from /home/thomas/.rvm/gems/ruby-1.9.3-p125/gems/heroku-2.21.2/lib/heroku/plugin.rb:51:in load!' from /home/thomas/.rvm/gems/ruby-1.9.3-p125/gems/heroku-2.21.2/lib/heroku/command.rb:17:inload'
from /home/thomas/.rvm/gems/ruby-1.9.3-p125/gems/heroku-2.21.2/lib/heroku/cli.rb:8:in start' from /home/thomas/.rvm/gems/ruby-1.9.3-p125/gems/heroku-2.21.2/bin/heroku:21:in<top (required)>'
from /home/thomas/.rvm/gems/ruby-1.9.3-p125/bin/heroku:19:in load' from /home/thomas/.rvm/gems/ruby-1.9.3-p125/bin/heroku:19:in

'

No account specified. (Heroku::Command::CommandFailed)

heroku-accounts: master
heroku: 2.21.2
git: 1.7.9.2

After installing heroku-account, all heroku commands now respond with:

/Users/karl/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:22:in `extract_account': No account specified. (Heroku::Command::CommandFailed)

Run this command with --account <account name>

You can also add it as a git config attribute with:
  git config heroku.account work
    from /Users/karl/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:35:in `fetch_from_account'
    from /Users/karl/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:5:in `user'
    from /Users/karl/.rvm/gems/ruby-1.9.3-p0-falcon@lw/gems/heroku-2.21.1/lib/heroku/plugin.rb:51:in `load!'
    from /Users/karl/.rvm/gems/ruby-1.9.3-p0-falcon@lw/gems/heroku-2.21.1/lib/heroku/command.rb:17:in `load'
    from /Users/karl/.rvm/gems/ruby-1.9.3-p0-falcon@lw/gems/heroku-2.21.1/lib/heroku/cli.rb:8:in `start'
    from /Users/karl/.rvm/gems/ruby-1.9.3-p0-falcon@lw/gems/heroku-2.21.1/bin/heroku:21:in `<top (required)>'
    from /Users/karl/.rvm/gems/ruby-1.9.3-p0-falcon@lw/bin/heroku:19:in `load'
    from /Users/karl/.rvm/gems/ruby-1.9.3-p0-falcon@lw/bin/heroku:19:in `<main>'

Obviously, I'm not able to set a heroku accounts:add.

Did I not install properly?

undefine method for nil class error

I just upgrade heroku gem to the latest and now my heroku command line is broken with

➜  openkitchen git:(master) ✗ heroku accounts
/Users/bradphelan/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:16:in `extract_account': undefined method `[]' for nil:NilClass (NoMethodError)
    from /Users/bradphelan/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:35:in `fetch_from_account'
    from /Users/bradphelan/.heroku/plugins/heroku-accounts/lib/ext/heroku/auth.rb:5:in `user'
    from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/lib/heroku/plugin.rb:51:in `load!'
    from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/lib/heroku/command.rb:17:in `load'
    from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/lib/heroku/cli.rb:8:in `start'
    from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/gems/heroku-2.21.2/bin/heroku:21:in `<top (required)>'
    from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/bin/heroku:19:in `load'
    from /Users/bradphelan/.rvm/gems/ruby-1.9.2-p180@gobbq/bin/heroku:19:in `<main>'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.