I need to set some environment variables programmatically before my rubber instances start the webserver. I've set the environment variables in the config/rubber/common/rubber.profile file. When I ssh into the instance, the Env variables are set properly and if I run the Rails console the variables are loaded in the environment. However, the webserver appears to be loaded prior to the env variables being set. The apis fail on the web server due to the initializers having blank ENV vars. How do I make sure that Rubber sets the bash profile prior to starting the web server?
Setting Environment variables with Rubber/Capistrano
411 Views Asked by Paul At
0
There are 0 best solutions below
Related Questions in RUBY-ON-RAILS-3
- Jruby: How to use third party java library?
- How do I update create route from rails 3 to 4
- Can't update user in Ruby on Rails
- Rails Ancestry. How can I display a single comment with all its descendants?
- LinkedIn API returns Positions without Title
- Catch emails to all [email protected], and execute code
- Cannot run elastic search in circleci to make my rspec for elasticsearch to pass?
- How do I clear values from text_field_tag after browser refresh?
- Rails submit create action succeeding
- f.select with enum in rails 3
- Rails 3 join where query - print only on row
- Rails testing button functionality with capybara.
- Fix spurious rspec "photo can't be blank" failures for Carrierwave
- ActiveRecord Slow Object Instantiation
- Ruby on Rails 3 Multiple Associations
Related Questions in CAPISTRANO
- uninitialized constant ActiveMerchant::Billing::CreditCard::Validateable (NameError) - in Spree shop
- Where is Capistrano 3's `deploy:cold` defined?
- Capistrano Rails deploy with new migration files
- How to ignore files with Capistrano 3 without copy_exlude
- Capistrano current/ directory doesn't get created
- Should the capistrano configuration files be checked in with git?
- Unable to deploy through capistrano after ubuntu upgrade
- Rubber : Unmet Dependencies for libapache2-mod-passenger
- bundler and rvm are using different rubies
- capistrano-env file permissions
- Capistrano and Corkscrew PATH error
- "bash: bundle: command not found" - cap aborted
- Can I execute task for capistrano 3 before connect on ssh?
- Unexpected Laravel 5 errors using Vagrant
- Running Migration after capistrano deployment
Related Questions in RUBBER
- Rubber : Unmet Dependencies for libapache2-mod-passenger
- Rubber + Google cloud as generic provider
- QRubberBand, how to draw on it
- Dry-Run Rubber (simulation)
- switching to rake db:schema:load with Rubber.
- Deploy with Rubber to Amazon VPC
- Setting Environment variables with Rubber/Capistrano
- nginx: [emerg] invalid number of arguments in "passenger_root" directive
- rubber - SecurityGroupLimitExceeded exceeded the number of VPC
- mkdir -p Missing Operand when running rubber:config
- EC2: "Groups belonging to other users may not be granted permissions to VPC security groups."
- Production mode is not running on port 80 (Rails)
- Rubber Deployment: complete_passenger_mysql setup cannot connect to AWS instance
- Rails deploy to ec2 with Rubber: mod_passenger.so: cannot open shared object file
- Rubber: How to upload just some html.erb files into a running instance on Amazon aws ec2
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?