Deploying it to heroku #411

Closed
jogiranjith opened this Issue Apr 2, 2014 · 2 comments

Projects

None yet

2 participants

@jogiranjith

When i deploy the app to heroku it gives me following error am not able to get it can any one please help me
/app/tmp/buildpacks/ruby/lib/language_pack/helpers/bundler_wrapper.rb:96:in rescue in definition': There was an error parsing your Gemfile, we cannot continue (LanguagePack::Helpers::BundlerWrapper::GemfileParseError) You need to configure config/database.yml first from /app/tmp/buildpacks/ruby/lib/language_pack/helpers/bundler_wrapper.rb:94:indefinition'
from /app/tmp/buildpacks/ruby/lib/language_pack/helpers/bundler_wrapper.rb:108:in block in ruby_version' from /app/tmp/buildpacks/ruby/lib/language_pack/helpers/bundler_wrapper.rb:101:inunlock'
from /app/tmp/buildpacks/ruby/lib/language_pack/helpers/bundler_wrapper.rb:107:in ruby_version' from /app/tmp/buildpacks/ruby/lib/language_pack/ruby_version.rb:78:ingemfile'
from /app/tmp/buildpacks/ruby/lib/language_pack/ruby_version.rb:105:in `set_version'

my database.yml file
development:
adapter: postgresql
encoding: unicode
database: publify_development
pool: 5
username: postgres
password:
test:
adapter: postgresql
encoding: unicode
database: publify_test
pool: 5
username: postgres
password:
production:
adapter: postgresql
encoding: unicode
database: publify_production
pool: 5
username: postgres
password:

and my Gemfile:
require 'yaml'
env = ENV["RAILS_ENV"] || 'development'
dbfile = File.expand_path("../config/database.yml", FILE)

unless File.exists?(dbfile)
if ENV['DB']
FileUtils.cp "config/database.yml.#{ENV['DB'] || 'postgres'}", 'config/database.yml'
else
raise "You need to configure config/database.yml first"
end
end

conf = YAML.load(File.read(dbfile))
environment = conf[env]
adapter = environment['adapter'] if environment
raise "You need define an adapter in your database.yml or set your RAILS_ENV variable" if adapter == '' || adapter.nil?
case adapter
when 'sqlite3'
gem 'sqlite3'
when 'postgresql'
gem 'pg'
when 'mysql2'
gem 'mysql2'
else
raise "Don't know what gem to use for adapter #{adapter}"
end

source 'https://rubygems.org'

gem 'rails', '> 3.2.16'
gem 'require_relative'
gem 'htmlentities'
gem 'bluecloth', '
> 2.1'
gem 'coderay', '> 1.1.0'
gem 'kaminari'
gem 'RedCloth', '
> 4.2.8'
gem 'addressable', '> 2.1', :require => 'addressable/uri'
gem 'mini_magick', '
> 3.7.0', :require => 'mini_magick'
gem 'uuidtools', '> 2.1.1'
gem 'flickraw-cached'
gem 'rubypants', '
> 0.2.0'
gem 'rake', '~> 10.1.0'

gem 'acts_as_list'

gem 'acts_as_tree_rails3'

gem 'fog'
gem 'recaptcha', :require => 'recaptcha/rails', :branch => 'rails3'
gem 'carrierwave'
gem 'akismet', '> 1.0'
gem 'twitter', '
> 5.6.0'

gem "jquery-rails", "> 3.1.0"
gem "jquery-ui-rails", "
> 4.2.0"

gem 'rails_autolink', '> 1.1.0'
gem 'dynamic_form', '
> 1.1.4'

gem 'iconv'

group :assets do
gem 'sass-rails', " ~> 3.2.6"
gem 'coffee-rails', " ~> 3.2.2"
gem 'uglifier'
end

group :development, :test do
gem 'thin'
gem 'factory_girl', '> 4.2.0'
gem 'webrat'
gem 'rspec-rails', '
> 2.14'
gem 'simplecov', :require => false
gem 'pry-rails'
end

Install gems from each theme

Dir.glob(File.join(File.dirname(FILE), 'themes', '**', "Gemfile")) do |gemfile|
eval(IO.read(gemfile), binding)
end

@fdv fdv added the bug label Apr 4, 2014
@fdv fdv added this to the 8.0.1 milestone Apr 4, 2014
@fdv fdv self-assigned this Apr 4, 2014
@fdv
Member
fdv commented Apr 4, 2014

Fixed by #403

We'll release a 8.0.1 to fix everything.

@fdv fdv closed this Apr 4, 2014
@jogiranjith

Than you so much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment