A
A
Anton Ivanov2017-02-25 05:24:13
Ruby on Rails
Anton Ivanov, 2017-02-25 05:24:13

How to organize a staging environment when using a gem?

Hello.
There is an application that uses my own gem.
in the gemfile, it is connected as the path to the repository and branch: 'master'
But on the staging environment, my code is taken from the staging branch (which is also for the gem).
How can you get out of this situation?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
oh_shi, 2017-02-25
@oh_shi

group :production do
  gem 'bar', git: 'https://github.com/foo/bar', branch: 'master'
end

group :staging do
  gem 'bar', git: 'https://github.com/foo/bar', branch: 'staging'
end

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question