Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

not all buildpacks release config_vars

  • Loading branch information...
commit faaf82b778c26ecb68183ca6521bd00a6a42c6c7 1 parent 8a1e4fd
@gorsuch gorsuch authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/mason/buildpack.rb
View
3  lib/mason/buildpack.rb
@@ -57,7 +57,8 @@ def compile(app, env_file=nil, cache=nil)
def write_env(compile_dir, release, env_file)
env = env_file ? Foreman::Engine.new.load_env(env_file) : {}
- config = release["config_vars"].merge(env)
+ config_vars = release["config_vars"] || {}
+ config = config_vars.merge(env)
File.open(File.join(compile_dir, ".env"), "w") do |f|
f.puts config.map{|k, v| "#{k}=#{v}"}.join("\n")
Please sign in to comment.
Something went wrong with that request. Please try again.