New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to ENV variables #65
Comments
I agree, an |
Maybe you can set the set :bundle_bin, 'GUSER=xxx GPASS=yyy bundle' |
set :bundle_bin, 'GUSER=xxx GPASS=yyy bundle' this is OK !!!! Thanks |
Try: task :env do On Oct 30, 2012, at 6:11 PM, Simon COURTOIS notifications@github.com I agree, an environment_variables should be available to provide variables — |
As stated earlier, this should work: task :env do
queue %[NAME="hello"]
end |
Also, if you want to put it in # .bashrc
export NAME="hello" |
Can you believe there is still no environment variable option? Goodness grief! Well, I think we may fork this thang and add an env-var option but until then we are using a big time hack. We store our variables locally in an .env file under the settings we put: # Non-cowboys, don't try this in production.
set :ssh_options, %{export #{File.open(".env").readlines.map(&:chomp).join(" ")}} You get the gist and can make it pretty yourself. This is one way to Heroku-tize our deploy. Happy hacking, |
I use Figaro require 'yaml' set :var_from_env, -> { YAML.load_file("./config/application.yml")["ENV_VAR"] } |
May I ask is there a doc for I used |
@lulalala thanks, it worked for me! I set bundle_prefix like this:
|
is Gemfile line
gem 'spree', '1.2.0', :git => "https://#{ENV['GUSER']}:#{ENV['GPASS']}@bitbucket.org/constella/spree.git", :branch => "1-2-stable"
how i can set variable GUSER and GPASS ?
.bashrc on server - not
.profile on server - not
queue! "export GUSER=memo" in deploy - no
You have changed in the Gemfile:
* spree from
https://:@bitbucket.org/constella/spree.git (at 1-2-stable)
tono specified source
ERROR: Deploy failed.
The text was updated successfully, but these errors were encountered: