heroku 推送被拒绝,无法编译 Ruby/rails 应用程序 [英] heroku push rejected, failed to compile Ruby/rails app
问题描述
遇到以下问题,全新到 RoR,第一次尝试上传应用程序上线,首先遇到托管问题,然后决定是否可以使用 heroku 修复它们,我将只使用带有 heroku 的自定义域..... 不,这不是测试应用程序学习轨道"的东西,我想部署在我拥有的业务中使用的实际应用程序,任何帮助都会很棒,我已经搜索过但还没有看到解决这个问题的方法.>
在打包前确保'gem install sqlite3 -v 1.3.7'成功.
无法通过 Bundler 安装 gemsHeroku 推送被拒绝,无法编译 Ruby/rails 应用程序至 git@heroku.com:peaceful-chamber-6371.git[远程拒绝] master ->主<预接收钩拒绝>错误:未能将一些引用推送到 'git@heroku.com:peaceful-chamber-6371.git
宝石文件
source 'https://rubygems.org'宝石导轨",3.2.12"# 改为捆绑边缘 Rails:# gem 'rails', :git =>'git://github.com/rails/rails.git'组:开发,:测试做宝石'sqlite3'结尾组:生产做宝石'pg'结尾# Gems 仅用于资产,不是必需的# 默认在生产环境中.组:资产做gem 'sass-rails', '~>3.2.3'gem '咖啡轨','~>3.2.1'# 有关更多支持的运行时,请参阅 https://github.com/sstephenson/execjs#readme# gem 'therubyracer', :platforms =>:红宝石gem 'uglifier', '>= 1.0.3'gem 'twitter-bootstrap-rails'结尾宝石'jquery-rails'# 使用 ActiveModel has_secure_password# gem 'bcrypt-ruby', '~>3.0.0'# 为 JSON 使用 Jbuilder 模板# gem 'jbuilder'# 使用独角兽作为应用服务器# gem '独角兽'# 使用 Capistrano 部署# gem 'capistrano'# 使用调试器# gem '调试器'
试试这个,
删除 Gemfile.lock
文件并执行 bundle install
,然后 git add
、git commit
和 git push
.
Having the following issue, BRAND NEW TO RoR, first time ever trying to upload an app to go live, first had hosting issues, then decided if i could fix them with heroku i would just use a custom domain with heroku...... No this isnt a test app "learning rails" thing, actual app i want to deploy for use within the business I own, any help would be great, I have searched and havent seen a solution to this problem.
Make sure 'gem install sqlite3 -v 1.3.7' succeeds before bundling.
Failed to install gems via Bundler
Heroku push rejected, failed to compile Ruby/rails app
To git@heroku.com:peaceful-chamber-6371.git
[remote rejected] master -> master <pre-receive hook declined>
error: failed to push some refs to 'git@heroku.com:peaceful-chamber-6371.git
Gem File
source 'https://rubygems.org'
gem 'rails', '3.2.12'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
gem 'twitter-bootstrap-rails'
end
gem 'jquery-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
try this,
remove Gemfile.lock
file and do bundle install
, then git add
, git commit
and git push
.
这篇关于heroku 推送被拒绝,无法编译 Ruby/rails 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!