New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bundler install --without 'deployment test' not worked with puma prune_bundler
#1593
Comments
As mention in above, if remove I have another question, is there any cases need Thanks |
I faced a very similar issue. More details here: rubygems/bundler#6667 . This comment by @deivid-rodriguez helped me find the root cause of the issue, which is due to the usage of a deprecated bundler method in the launcher.rb of the Puma gem. Maintainers - Please let me know if I should create a PR with the alternate bundler method. |
Hi, Here have a new issue i thought more relevant with this. Create a Dockerfile, it worked on default config/puma.rbThis Dockerfile use ruby:2.3.8-alpine3.8, run a rails 5.2 application, All work well use default config/puma.rb Change to use config/puma_production.rb, enable multi-process.Add following code to puma config:
Get errors/app # bundle exec puma -C config/puma_production.rb
fatal: not a git repository (or any of the parent directories): .git
* Pruning Bundler environment
[334] Puma starting in cluster mode...
[334] * Version 3.12.0 (ruby 2.3.8-p459), codename: Llamas in Pajamas
[334] * Min threads: 0, max threads: 16
[334] * Environment: production
[334] * Process workers: 8
[334] * Phased restart available
[334] * Listening on tcp://0.0.0.0:3000
[334] Use Ctrl-C to stop
[339] + Gemfile in context: /app/Gemfile
[343] + Gemfile in context: /app/Gemfile
[347] + Gemfile in context: /app/Gemfile
[351] + Gemfile in context: /app/Gemfile
[355] + Gemfile in context: /app/Gemfile
[359] + Gemfile in context: /app/Gemfile
[363] + Gemfile in context: /app/Gemfile
[367] + Gemfile in context: /app/Gemfile
You must use Bundler 2 or greater with this lockfile.You must use Bundler 2 or greater with this lockfile.
[371] + Gemfile in context: /app/Gemfile
You must use Bundler 2 or greater with this lockfile.
[375] + Gemfile in context: /app/Gemfile
You must use Bundler 2 or greater with this lockfile.
[377] + Gemfile in context: /app/Gemfile
[383] + Gemfile in context: /app/Gemfile
You must use Bundler 2 or greater with this lockfile.
[387] + Gemfile in context: /app/Gemfile
You must use Bundler 2 or greater with this lockfile.
[391] + Gemfile in context: /app/GemfileYou must use Bundler 2 or greater with this lockfile.
[395] + Gemfile in context: /app/Gemfile
You must use Bundler 2 or greater with this lockfile. After comment
|
I believe this will be fixed by #1893, if it isn't already fixed on master. |
Cool, i will test above example when this fix is merge into master. |
Steps to reproduce
puma config with following special config:
bundler only install gems which need in production.
So, i use following pattern in
Dockerfile
.Expected behavior
When run puma with this config. (
prune_bunder
andworkers
must set),we expect puma server is startup correctly
Actual behavior
raise Exception when puma start a new worker process.
Could not find public_suffix-3.0.2 in any of the sourcesCould not find public_suffix-3.0.2 in any of the sources ( (Bundler::GemNotFound)
Others
Following three case worked:
workers
config, it worked.prune_bunder
, it worked too.bundle install
no--without
config, config not need change, all work well.System configuration
Ruby version:
2.5.2
Rails version:
5.1.6
Puma version:
3.11.4
The text was updated successfully, but these errors were encountered: