I am working on a project in which Gemfile is not present. That project is working fine on production server having Apache with passenger. But, Bundle install and bundle update does not work when I try try to start project in development environment. How to get that project working in development environment?
Asked
Active
Viewed 224 times
0
-
What is the error message that comes up when you run bundle? – DormeoES Jun 09 '17 at 12:28
-
Any reason for not following conventions? – Ruslan Jun 09 '17 at 13:44
-
@DormeoES, Error: Could not locate Gemfile – vidur punj Jun 09 '17 at 13:53
-
@Ruslan do not know the reason why the developer who was handling this project did so. – vidur punj Jun 09 '17 at 13:55
-
Is there a Gemfile or Gemfile.lock in the production environment? – Roland Studer Jun 09 '17 at 16:00
-
In passenger config, check which gemset is being used for your application. – Sujan Adiga Jun 09 '17 at 20:00
-
@RolandStuder no Gemfile, Gemfile.lock is present in production environment. – vidur punj Jun 10 '17 at 10:34
1 Answers
0
Unless someone from systems engineering can tell you, where the Gems were defined, You can reverse engineer a Gemfile from the contents of Gemfile.lock
.
Or you can try to run your project by using this command, after you copied the Gemfile.lock from production, also put an empty Gemfile, as the bundler requires it.
bundle install --deployment
see this answer, but sooner or later you will need the Gemfile.

Roland Studer
- 4,315
- 3
- 27
- 43