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

Bugfix/3340/heroku deploy #3347

Merged
merged 2 commits into from
Feb 28, 2018
Merged

Bugfix/3340/heroku deploy #3347

merged 2 commits into from
Feb 28, 2018

Conversation

bricesanchez
Copy link
Member

This will fix #3340

@@ -93,6 +94,10 @@ def append_heroku_gems!
}.sub("{{production_gems}}", production_gems.join("\n "))
end

def current_ruby_version
(env_ruby_version = ENV['RUBY_VERSION']).present? ? env_ruby_version : RUBY_VERSION
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for this you can use:

def current_ruby_version
  ENV['RUBY_VERSION'].presence || RUBY_VERSION
end

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your right i under use .presence, my bad! it's fixed now

In order to use current ruby version from ENV var or constant
@bricesanchez bricesanchez force-pushed the bugfix/3340/heroku-deploy branch from 2a05dd3 to 1b59e47 Compare February 28, 2018 12:55
@bricesanchez bricesanchez merged commit d11c780 into master Feb 28, 2018
@bricesanchez bricesanchez deleted the bugfix/3340/heroku-deploy branch February 28, 2018 21:07
@bricesanchez bricesanchez added this to the 4.0.2 milestone Mar 7, 2018
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

Successfully merging this pull request may close these issues.

heroku deploy not happening
2 participants