問題
Ruby初心者です。
作ったアプリをHerokuへデプロイしようとしているところです。
$ rails test $ git add -A $ git commit -m "Use SSL and the Puma webserver in production" $ git push $ git push heroku
までは上手くいったのですが、
$ heroku run rails db:migrate
を行うと以下のエラーが表示されます。
Running rails db:migrate on ⬢ pacific-mountain-68662... up, run.4775 (Free) bash: rails: command not found
$ heroku -v heroku/7.22.0 linux-x64 node-v11.9.0 $ rails -v Rails 5.2.2
と表示されているのでインストールは問題ないかと思います。
###試したこと
・bundle install
・以下のコードを入力
$heroku run rake db:migrate rake aborted! No Rakefile found (looking for: rakefile, Rakefile, rakefile.rb, Rakefile.rb) (See full trace by running task with --trace)
そこからRakefileを作成し、Rakefile内は
require_relative 'config/application' Rails.application.load_tasks
と表示されています。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。