Last active
July 6, 2017 10:05
-
-
Save jnicho02/0884f366eff8d64d165c2e1fd99e870b to your computer and use it in GitHub Desktop.
Cloud9 Rails5 Heroku update
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Cloud9.io has a Rails template project, but it is Rails 4 | |
Check that it is still Rails 4: | |
$ rails -v | |
Rails 5 needs ruby 2.2.2 minimum, but I belive that Cloud9 has 2.3.0p0....just check: | |
$ ruby -v | |
Update the rails installation to 5: | |
$ gem install rails | |
Update Gemfile line near the top: | |
$ gem 'rails', '>= 5.0.1' | |
Update rails to v5: | |
$ bundle update rails | |
It should now be v5.x, let's check: | |
$ rails -v | |
Upgrade the project: | |
$ rails app:update | |
Create an ApplicationRecord: | |
# app/models/application_record.rb | |
class ApplicationRecord < ActiveRecord::Base | |
self.abstract_class = true | |
end | |
Cloud 9 can't talk to Heroku over https: | |
$ wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment