Antonio Peric
Antonio Peric

Reputation: 246

Capifony (Capistrano) asks for github credentials when trying to deploy Symfony2 app

I am trying to put my website in production with capifony (capistrano) symfony2 app

Everything goes well but at some point it asks about Github credentials for private repos.

here is my error

[out :: web-dev.domain.com] Could not fetch https://api.github.com/repos/sensio/SensioDistributionBundle/zipball/4a2c803dc8db79952ad5e71783c16178427bbc02, enter your GitHub credentials to access private repos ** [out :: web-dev.domain.com] The credentials will be swapped for an OAuth token stored in /home/webdev/.composer/config.json, your password will not be stored ** [out :: web-dev.domain.com] To revoke access to this token you can visit https://github.com/settings/applications [out :: web-dev.domain.com] Username:

When I enter my username and press enter, nothing happened just goes to new line. Is there any solution for this problem?

This solved my problem:

https://help.github.com/articles/using-ssh-agent-forwarding

Upvotes: 0

Views: 1136

Answers (2)

crysallus
crysallus

Reputation: 358

I ran into the same problem running composer install (not with capifony).

The fix I found was explained here: https://coderwall.com/p/xanheg

It seems sensio has renamed their repo from sensio to sensiolabs. So I:

Ran composer install and all worked correctly

Upvotes: 2

AlterPHP
AlterPHP

Reputation: 12727

To avoid interactive (but disruptive) credentials ask, you can add this line in your deploy.rb file :

ssh_options[:forward_agent] = true

It transfers your SSH key for github access.

Upvotes: 1

Related Questions