heroku push error: “Could not detect rake tasks”

后端 未结 10 1194
离开以前
离开以前 2020-12-04 01:19

I\'m trying to deploy a basic app and it\'s not working. Using

git push heroku master 

I got this error message:

remote:          


        
10条回答
  •  自闭症患者
    2020-12-04 02:04

    You may also want to add PG Gem file in production in your gem file

    GemFile

    group :production do
     gem 'pg'
     gem 'rails_12factor'
    end
    
    group :development do
     gem 'sqlite3'
    end
    

    OR:

    # Use sqlite3 as the database for Active Record
    gem 'sqlite3', group: [:development, :test]
    
    gem 'rails_12factor', group: :production
    gem 'pg', group: :production
    

    Once you added that there save and run the following:

    Terminal

    gem install bundler
    bundle install
    git add .
    git commit -m "Some comment here..."
    git push heroku master
    

提交回复
热议问题