I get an error when I try to start the Rails 5 server.
The specified 'postgresql' for the database adapter, but this stone is not loaded. Add gem 'pg'to your Gemfile (and make sure its version is at least) is required for ActiveRecord).
I deleted local postgres via brew, also deleted my existing mac application. This is my gemfile
source 'https://rubygems.org'
gem 'rails', '5.0.0'
gem 'puma', '3.4.0'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.0.0'
gem 'coffee-rails', '4.2.1'
gem 'jquery-rails', '4.1.1'
gem 'turbolinks', '5.0.0'
gem 'jbuilder', '2.4.1'
group :development, :test do
gem 'sqlite3'
gem 'byebug', '9.0.0', platform: :mri
end
group :development do
gem 'web-console', '3.1.1'
gem 'listen', '3.0.8'
gem 'spring', '1.7.2'
gem 'spring-watcher-listen', '2.0.0'
end
group :production do
gem 'pg'
end
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
I used
install the package - no production
But I still get the same error. Can anyone help?
Thanks, Zin
source
share