How do we pass the :rails_env vairable so that it recognizes what version we are into i.e. staging, production, demo
We are trying to get the :rails_env from the deploy.rb in capistrano to pass to cookbook and then to monit and then create a mongrel.conf file with different values for the environment (demo..production). In mongrel.erb, we can pick up this variable/parameter and set the RAILS_ENV=xxxx
in the command line, want to specify what deployment we are doing -- cap chef:bootstrap production
this "production" sets the :rails_env in deploy.rb