[英]git push heroku master failed / RoR app
--> 移動到你的項目文件夾
cd /location
首先檢查您的狀態
git status
添加文件
git add
立即提交
git commit -m “Commit Now”
使用您的遠程位置/地址
git remote add origin https://github.com/user/projname.git
查看遙控器
git remote -v
立即推送
git push <remote> <branch>
強制推送
git push -f <remote> <branch>
寶石文件:
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
end
group :development do
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
group :production do
gem 'pg', '~> 0.11'
gem 'rails_12factor'
end
除了那些 gem 之外,其他所有寶石都必須在頂部,我們應該使用“pg” gem 進行生產,使用“sqlite3”進行開發
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.