Skip to content
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

Not pushing ENV vars to heroku #2

Open
soumyaray opened this issue Apr 28, 2016 · 2 comments
Open

Not pushing ENV vars to heroku #2

soumyaray opened this issue Apr 28, 2016 · 2 comments

Comments

@soumyaray
Copy link

Greetings, I can't get config_env to push to heroku anymore :(

Since I don't include the config_env gem in production, I've added the following to my Rakefile:

namespace :deploy do
  require 'config_env/rake_tasks'
  ConfigEnv.path_to_config("#{__dir__}/config/config_env.rb")

  task :config do
    Rake::Task['deploy:config_env:heroku'].invoke
  end
end

Running rake deploy:config runs the config_env heroku task where it lists the current Heroku setup:

Running echo $RACK_ENV on <appname>... up, run.9690
Configure Heroku according to config_env[25h]
Setting  and restarting <appname>... done, v12

=== <appname> Config Vars
DATABASE_URL: ...
LANG:         en_US.UTF-8
RACK_ENV:     production

But it doesn't upload the ENV variables I've setup in config/config_env.rb, and doesn't report any errors.

@soumyaray soumyaray changed the title Not pushing to heroku Not pushing ENV vars to heroku Apr 28, 2016
@SergXIIIth
Copy link
Owner

Hi Soumya,

I happy to see that the gem is useful.

I am a bit busy. Is it possible for you to debug and send PR?
On Apr 28, 2016 4:43 PM, "Soumya Ray" [email protected] wrote:

Greetings, I can't get config_env to push to heroku anymore :(

Since I don't include the config_env gem in production, I've added the
following to my Rakefile:

namespace :deploy do
require 'config_env/rake_tasks'
ConfigEnv.path_to_config("#{dir}/config/config_env.rb")

task :config do
Rake::Task['deploy:config_env:heroku'].invoke
end
end

Running rake deploy:config runs the config_env heroku task where it lists
the current Heroku setup:

Running echo $RACK_ENV on ... up, run.9690
Configure Heroku according to config_env[25h]
Setting and restarting ... done, v12

=== Config Vars
DATABASE_URL: ...
LANG: en_US.UTF-8
RACK_ENV: production

But it doesn't upload the ENV variables I've setup in config/config_env.rb,
and doesn't report any errors.


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
#2

@soumyaray
Copy link
Author

Serg, I've been booked too lately -- will look into it. Thanks for the great gem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants