Reputation: 1098
How can I push gem to a private server without an authorization? Is there a way to disable it?
gem push mygem-0.0.0.gem --host http://localhost:51856
Enter your http://localhost:51979 credentials.
Don't have an account yet? Create one at http://localhost:51979/sign_up
The private server does not require authorization. The question is how to disable it for the gem push operation?
Upvotes: 1
Views: 774
Reputation: 106852
On the one side, you wrote your gem server on your own and your server does not need and therefore does not check credentials. On the other side, the gem push
command expects that the gem server always requires credentials.
A workaround could be to configure a random GEM_HOST_API_KEY
environment variable. When that variable existing, the gem push
command will not ask for credentials anymore and will instead send that random API key, which then will be ignored by your server.
Upvotes: 2