Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gemfile require gem in all environments except one

I have rails application with a lot of environments: test, dev, production, staging, testing2 and so on.

I want gem 'puma' to be installed for all environments except test. How can I make it?

The simplest way is to make whitelist:

gem 'puma', group: [:development, :staging, :dev, :production, :testing2]

But this seems too bad, because it'll be better just to make:

gem 'puma', except: [:test]

Is there any way to do it?

like image 423
asiniy Avatar asked Dec 07 '15 16:12

asiniy


1 Answers

Sorry, there is no way to do this.

like image 60
Yury Lebedev Avatar answered Sep 22 '22 07:09

Yury Lebedev