Answer the question
In order to leave comments, you need to log in
How to correctly register your gem in the Gemfile? Or how to properly deploy it?
Hello.
There is a ruby module that describes the model and three applications that use this module.
In the Gemfile, respectively, this line:
gem 'app_model', path: '/usr/local/www/sites/app_files/app_model'
Your Gemfile lists the gem app_model (>= 0) more than once.
if ENV['RACK_ENV'] == "development"
Answer the question
In order to leave comments, you need to log in
And what's the problem with using a relative path and adding the gem directly to the directory, or, for example, one level higher?
You can upload it to github
But in general, in fact, even though the decision to give part of the functionality to the gem seems to be not bad, you need to support it quite seriously and first it’s better to think three times and weigh everything
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question