gemfile groups
gems on groups that are not development or test are included in production environment because the default recipe just exclude test and development, we need to exclude ci group on production.
Chef::Log.info("sudo su deploy -c 'cd #{app_root_path} && bundle install --path #{app_config[:home]}/.bundler/#{app_name} --without=test development'")
How can we do that without changing scalarium default deploy recipe?
Thanks
P
Support Staff 2 Posted by Jonathan Weiss on 11 Feb, 2012 05:11 PM
This is not possible yet without changing the recipe.
We will see that we make that configurable through Chef attributes / custom JSON.
3 Posted by pedro.visintin on 11 Feb, 2012 07:25 PM
Thanks for taking a look on this.
Will be great to be configurable because we had to remove the ci group on our Gemlist and is not a good idea to change the scalarium deploy recipe.
Bests
P
Support Staff 4 Posted by Daniel Hüsch on 13 Feb, 2012 08:26 AM
I just made this configurable and added you as a contact in Google Talk. Let me know when you are ready to test it and I will show you how.
Support Staff 5 Posted by Daniel Hüsch on 13 Feb, 2012 10:50 AM
As explained outside tender, you are able to set the bundler groups to ignore with custom JSON, as follows.
Right now, that's only possible in your production cloud.
Support Staff 6 Posted by Jonathan Weiss on 07 May, 2012 03:17 PM
Hi Pedro,
We are going to have to rename this namespace in order to prepare for a Ruby + Chef update.
In the future this will be:
So please set bot versions for a while.
7 Posted by pedro.visintin on 07 May, 2012 03:35 PM
Thanks for let us know.
Do you know when this will be implemented?
Thanks
P
Support Staff 8 Posted by Jonathan Weiss on 07 May, 2012 03:38 PM
I guess we will roll this out over the next week, but just have both syntax like this
This way it will work both with the old and the new syntax and you don't have to worry. At some point you can remove the old syntax after we deployed the new.