0

mina deploy -tデータベースの移行が開始されるまですべてがスムーズに進むと、mina を使用して first_app をデプロイしようとしています。これは私が得ているエラーです。

Migrating database
$ RAILS_ENV="production" bundle exec rake db:migrate
rake aborted!
Gem::LoadError: Specified 'mysql' for database adapter, but the gem is not loaded.
Add   `gem 'mysql'` to your Gemfile.

だから私は私のGemfileに行きました

source 'https://rubygems.org'   
ruby '2.0.0'
gem 'mina', '0.3.0'
#ruby-gemset=railstutorial_rails_4_0


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.0.8'
gem 'mysql', '~> 2.9.1'

#group :development do
# Use sqlite3 as the database for Active Record
# gem 'sqlite3', '1.3.8'
#end

# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 2.1.1'

# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '4.0.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
# Use jquery as the JavaScript library
gem 'jquery-rails', '3.0.4'
# Turbolinks makes following links in your web application faster. Read more: 
gem 'turbolinks', '1.1.1'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '1.0.2'
group :doc do
    # bundle exec rake doc:rails generates the API under doc/api.
    gem 'sdoc', '0.3.20', require: false
end
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano', group: :development
# Use debugger
# gem 'debugger', group: [:development, :test]

そのため、宝石はそこにあり、実行するとリストされ、オプションを使用するとバンドラーが記憶でき、開発グループにある宝石が含まれないbundle installという事実を知っている人のためのグループにはありません。--without developmentさらに Icat を実行すると

.
.
.
Using json 1.8.1
Using open4 1.3.4
Using mina 0.3.0
Using mysql 2.9.1
Using bundler 1.7.2
Using tilt 1.4.1
.
.
.

ミナ展開中に実行されます

 $ bundle install --without development:test --path "./vendor/bundle" --binstubs bin/  
 --deployment
   Using rake 10.3.2
   Using i18n 0.6.11
   Using minitest 4.7.5
   Using multi_json 1.10.1
   Using thread_safe 0.3.4
   Using tzinfo 0.3.41
   Using activesupport 4.0.8
   Using builder 3.1.4
   Using erubis 2.7.0
   Using rack 1.5.2
   Using rack-test 0.6.2
   Using actionpack 4.0.8
   Using mime-types 1.25.1
   Using polyglot 0.3.5
   Using treetop 1.4.15
   Using mail 2.5.4
   Using actionmailer 4.0.8
   Using activemodel 4.0.8
   Using activerecord-deprecated_finders 1.0.3
   Using arel 4.0.2
   Using activerecord 4.0.8
   Using coffee-script-source 1.8.0
   Using execjs 2.2.1
   Using coffee-script 2.3.0
   Using thor 0.19.1
   Using railties 4.0.8
   Using coffee-rails 4.0.1
   Using hike 1.2.3
   Using jbuilder 1.0.2
   Using jquery-rails 3.0.4
   Using json 1.8.1
   Using bundler 1.7.2
   Using tilt 1.4.1
   Using sprockets 2.11.0
   Using sprockets-rails 2.1.4
   Using rails 4.0.8
   Using rdoc 3.12.2
   Using sass 3.2.19
   Using sass-rails 4.0.3
   Using sdoc 0.3.20
   Using turbolinks 1.1.1
   Using uglifier 2.5.3
   Your bundle is complete!
   Gems in the groups development and test were not installed.

だから、ここで私が見逃しているのは、minaがバンドル中に含めたり除外したりするグループと関係があるように感じます.どんな助けでも大歓迎です.

4

1 に答える 1