- From: <
>
- To:
- Subject: [chef] rails environmental variable in application_ruby
- Date: Tue, 10 Jun 2014 13:43:07 -0700 (PDT)
I am using the application_ruby libraries to install a rails app. My chef
environment name is different from the RAILS_ENV variable I want the "bundler"
and "precompile_assets" actions to run as.
When I write
rails do
environment stage
bundler true
precompile_assets true
end
The bundler and precompile_assets do not run as RAILS_ENV=stage but run as the
chef environment name.
Even "environment 'RAILS_ENV' => 'stage' " doesn't work.
This works perfectly fine for the application libraries and the deploy
resource
of chef,but not for the application_ruby library which is based off of the
deploy and application resources.
Anyone knows how I can make this work. I don't want to set the ruby
environment
name to stage for various different reasons, so that solution isn't going to
work for me.
Thanks,
Rishi
- [chef] rails environmental variable in application_ruby, rgokhale, 06/10/2014
Archive powered by MHonArc 2.6.16.