-
Notifications
You must be signed in to change notification settings - Fork 452
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
"heroku run rails db:migrate" fails on Windows 10 #621
Comments
Heroku won't do sqlite, only (mainly) postgres. Set the production environment to pg in your Gemfile
|
It does actually say this is the tutorial now https://shielded-mesa-4358.herokuapp.com/intro-to-rails/deploying_to_heroku in Step 2, so issue could be closed |
I got the same error message, and tried this solution. Unfortunately, it didn't work for me, and the tutorial here: http://docs.railsbridge.org/installfest/deploy_a_rails_app hasn't been changed yet, so I'm adding the solution that did work for me to this thread. Following this Stack Overflow post: https://stackoverflow.com/questions/48201361/rails-application-using-postgres-adapter-cant-activate-pg, I added the minimum version of the pg gem to the Gemfile, like this:
And that worked. :-) |
Fixed in this pull request: #632 |
Hi, I'm following your Installfest guide and I'm trying to deploy my first Ruby on Rails app to Heroku. However, I've hit a wall when it comes to migrating the database, and this seems to be the issue:
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add
gem 'sqlite3'to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
The Gemfiles are apparently disregarded because they were edited on Windows. What can I do?
The text was updated successfully, but these errors were encountered: