今railsのチュートリアルを行っているのですが、2.3.5デモアプリケーションのデプロイの項で行っているherokuへのデプロイの部分で躓いています。
Gemfileは以下のように編集し、herokuへのpushまでは成功しています。
lang
1source 'https://rubygems.org' 2 3 4# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 5gem 'rails', '4.2.0' 6# Use sqlite3 as the database for Active Record 7# gem 'sqlite3' 8ruby '2.2.0' 9 10group :development, :test do 11 gem 'sqlite3' 12end 13 14group :production do 15 gem 'pg' 16 gem 'rails_12factor' 17end 18 19# Use SCSS for stylesheets 20gem 'sass-rails', '~> 5.0' 21# Use Uglifier as compressor for JavaScript assets 22gem 'uglifier', '>= 1.3.0' 23# Use CoffeeScript for .coffee assets and views 24gem 'coffee-rails', '~> 4.1.0' 25# See https://github.com/sstephenson/execjs#readme for more supported runtimes 26gem 'therubyracer', platforms: :ruby 27 28# Use jquery as the JavaScript library 29gem 'jquery-rails' 30# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 31gem 'turbolinks' 32# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 33gem 'jbuilder', '~> 2.0' 34# bundle exec rake doc:rails generates the API under doc/api. 35gem 'sdoc', '~> 0.4.0', group: :doc 36 37# Use ActiveModel has_secure_password 38# gem 'bcrypt', '~> 3.1.7' 39 40# Use Unicorn as the app server 41# gem 'unicorn' 42 43# Use Capistrano for deployment 44# gem 'capistrano-rails', group: :development 45 46group :development, :test do 47 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 48 gem 'byebug' 49 50 # Access an IRB console on exception pages or by using <%= console %> in views 51 gem 'web-console', '~> 2.0' 52 53 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 54 gem 'spring' 55end 56
しかしその後のマイグレーションでコケているというのが現状です。
lang
1$ heroku run rake db:migrate 2Running `rake db:migrate` attached to terminal... up, run.3049 3/usr/bin/env: ruby2.2: No such file or directory
ネット上に同症状での解決法が載っておらず、どうすれば良いのかがわからないので、有識者の方のお知恵をお借りしたいです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。