Rails,无法将应用程序部署到heroku

时间:2015-10-18 10:09:49

标签: ruby-on-rails git heroku pg

我是rails的新手,但让应用程序运行良好。现在我想将它发布到网上进行测试。我正在尝试heroku,但无法让它工作。

这是我的gemfile:

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.4'
# Use sqlite3 as the database for Active Record
group :production do
  gem 'pg'
end
group :development, :test do
  gem 'sqlite3'
end

# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'

gem "font-awesome-rails"
gem 'carrierwave'
gem "rmagick"

gem 'responders', '~> 2.0'
gem 'prawn'
gem 'prawn-table'
gem 'bcrypt'

# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'

# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
#gem 'turbolinks'

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

group :development, :test do
  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
  gem 'byebug'
end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

执行git push时出错: enter image description here

事情是在进行git推送时,它无法安装pg,倾斜(它甚至不在我的gemfile中,为什么它甚至尝试?)和大虾,但主要是在pg上失败。 我在Windows机器上这样做。 我成功地访问了windows的heroku指南的这一部分:https://devcenter.heroku.com/articles/getting-started-with-jruby#deploy-the-app

然后尝试删除rails文件和文件夹,并复制我的应用程序中的文件和文件夹,但它失败,如上所示。

提前感谢您的帮助。

0 个答案:

没有答案