0

We have a gem which is specific to our project and is also shared among multiple projects. When we try to install our Gemfile using bundle:install command via capistrano, it fails mentioning that it is unable to find the sources for foo-1.0.0.gem

** [out :: ubuntu@14.245.216.229] Could not find foo-1.0.0 in any of the sources

How should I resolve this, since I cannot expose this gem in a public repository. What would be the right way to bundle and deploy.

Rpj
  • 5,348
  • 16
  • 62
  • 122

1 Answers1

1

I believe you should provide the source for the gem like this:

gem 'foo', :git => 'https://my_username:my_password@github.com/my_github_account/my_repo.git'

If this is not an option for you, you might need to setup your own gem server or vendor the gem

socjopata
  • 5,028
  • 3
  • 30
  • 33