简体   繁体   English

git push heroku master 失败/RoR 应用程序

[英]git push heroku master failed / RoR app

I'm trying to push on an heroku folder with the command git push heroku master and it failed.我正在尝试使用命令 git push heroku master 推送一个 heroku 文件夹,但它失败了。 My logs are :我的日志是: 在此处输入图片说明

--> Move to your project folder --> 移动到你的项目文件夹

cd /location

First Check Your Status首先检查您的状态

git status

Add files添加文件

git add

Commit Now立即提交

git commit -m “Commit Now”

Use your Remote location / Address使用您的远程位置/地址

git remote add origin https://github.com/user/projname.git

To see Remotes查看遥控器

git remote -v

Push now立即推送

git push <remote> <branch>

Force Push强制推送

git push -f <remote> <branch>

Update :更新 :

Gemfile :宝石文件

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

except those gems all the other have to be on the top and we should use 'pg' gem for production and 'sqlite3' for development除了那些 gem 之外,其他所有宝石都必须在顶部,我们应该使用“pg” gem 进行生产,使用“sqlite3”进行开发

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM