Ruby on Rails Monday, June 26, 2017

pty true false doesnt make a difference...


On Mon, Jun 26, 2017 at 11:41 AM, tom <tomabroad@gmail.com> wrote:
i did change from mysql to mariadb (debian 7 upgrade to 8).
just did this too:
gem install mysql2 -- --with-mysql-config=/usr/bin/mariadb_config
but no go....


db.yml
# MySQL.  Versions 5.0+ are recommended.
#
# Install the MYSQL driver
#   gem install mysql2
#
# Ensure the MySQL gem is defined in your Gemfile
#   gem 'mysql2'
#
# And be sure to use new-style password hashing:
#
default: &default
  adapter: mysql2
  encoding: utf8
  pool: 5
  username: wahwah
  password: wahwah
  socket: /var/run/mysqld/mysqld.sock

development:
  <<: *default
  database: myapp_dev

# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
  <<: *default
  database: myapp_test

staging:
  <<: *default
  database: myapp_staging
  host: localhost
  username: wahwah
  password: wahwah


production:
  <<: *default
  host: localhost
  database: myapp_production
  username: wahwah
  password: wahwah
=====================
gem file:

gem 'rails', '4.2.0'
gem 'sass-rails' #, '~> 4.0.3'
gem 'uglifier', '>= 1.3.0'
gem 'mini_magick'
gem 'bundler'
gem 'will_paginate', '~> 3.1.0'
gem 'will_paginate-bootstrap'
gem 'sinatra', require: false
gem 'slim'
gem 'jquery-rails'
gem 'meta-tags'
gem 'ransack', github: 'activerecord-hackery/ransack'
gem 'omniauth'
gem 'omniauth-twitter'
gem 'omniauth-facebook'
gem 'omniauth-linkedin'
gem "jquery-ui-rails"
gem 'execjs'
gem 'therubyracer'
gem 'mysql2'# , '~> 0.3.18'
gem 'sidekiq'
gem 'social-share-button'
gem 'simple_form'
gem 'mechanize'
gem "actionpack-page_caching"
gem 'rails-observers'
gem 'nokogiri'
gem 'ckeditor'
gem 'rails-gallery'
gem 'thredded', '~> 0.9.2'
gem 'anemone'
gem 'lol_dba'
gem 'bullet', group: 'development'
gem 'actionpack-action_caching'
#gem 'classifieds', path: 'engines/classifieds'

#gem 'thredded', '~> 0.9.2'
#gem 'country_state_select' , '3.0.0'
#gem 'yui-compressor', '~> 0.12.0'
#gem 'pry'
#gem 'exception_handler' #, '~> 0.5.0' #-> Gemfile
gem "koala", "~> 2.2"
gem 'whenever', require: false
gem 'bootstrap3_autocomplete_input'
gem 'bootstrap-sass', '~> 3.2.0'
gem 'autoprefixer-rails'
gem 'font-awesome-rails'
gem 'figaro'
gem 'sitemap_generator'
gem 'momentjs-rails', '>= 2.9.0'
gem 'bootstrap3-datetimepicker-rails', '~> 4.17.37'
gem 'paper_trail'
gem "braintree"
gem 'gon'
gem 'auto_html','~>1.6.4'
#gem 'capistrano' #, '~> 3.4.0'

gem 'capistrano-bundler' #, '~> 1.1.2'
gem 'capistrano-rvm'
gem 'capistrano-passenger'
#gem 'rvm1-capistrano3', require: false
gem 'capistrano-sidekiq' #, group: :development
gem "passenger"
#gem 'twitter-bootstrap-rails', :git => 'https://github.com/seyhunak/twitter-bootstrap-rails.git', :branch => 'master'
#gem 'simple_token_authentication'
gem 'twitter'
gem 'plivo'
gem 'acts-as-taggable-on'
gem 'groupdate'
gem "chartkick"
gem 'friendly_id', '~> 5.1.0' # Note: You MUST use 5.0.0 or greater for Rails 4.0+
gem 'devise'
gem 'devise_invitable'
gem 'carrierwave'
gem 'public_activity'
gem 'bootstrap-will_paginate'
gem 'acts_as_votable', '~> 0.10.0'
gem 'acts_as_commentable'
gem 'acts_as_follower'
gem 'counter_culture', '~> 0.1.33'
gem "mailboxer"
gem 'faker'
gem 'populator'
gem 'awesome_nested_set'
#gem 'country_state_select' # , '3.0.2'
gem 'city-state'
gem 'chosen-rails'
gem 'spring'
  gem 'better_errors'
  gem 'letter_opener'
  gem 'guard'
  gem 'guard-rspec', '~> 4.2.8'
  #gem 'rails_12factor'
#gem 'sprockets'
group :development do
gem 'capistrano-rails' #, '~> 1.1.0'
  gem 'capistrano-ssh-doctor', '~> 1.0'
end

gem 'devise-encryptable'
#gem 'devise-async' #send email


On Mon, Jun 26, 2017 at 11:23 AM, Colin Law <clanlaw@gmail.com> wrote:
On 26 June 2017 at 15:56, tom <tomabroad@gmail.com> wrote:
> HI, im getting the error below during a cap deploy. i can run production
> console successfully on the server.
> any ideas?
> thx
> ...
>  DEBUG [24759d1b]       rake aborted!
>  DEBUG [24759d1b]       LoadError: Could not load
> 'active_record/connection_adapters/mysql2_adapter'. Make sure that the
> adapter in config/database.yml is valid. If you use an adapter other than '
> mysql', 'mysql2', 'postgresql' or 'sqlite3' add the necessary adapter gem to
> the Gemfile.

Have you tried running assets:precompile locally, in production environment?

What have you got in database.yml? Also post Gemfile please.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAL%3D0gLuKLNZnfcaapvc3ypdi6JfRwM1wPwZpXpLBhsqKB1Km6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CADQqhMd-5tMdtLtVUY-UeUUFCbUwCe_WZ9AZp%3D98wPFzsRBvuA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment