Skip to content

Instantly share code, notes, and snippets.

@andrewhl
Created October 17, 2011 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrewhl/1291850 to your computer and use it in GitHub Desktop.
Save andrewhl/1291850 to your computer and use it in GitHub Desktop.
source 'http://rubygems.org'
gem 'rails', '3.1.0'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', "~> 3.1.0"
gem 'uglifier'
end
gem 'jquery-rails'
group :production do
# gems specifically for Heroku go here
gem "pg"
end
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
@andrewhl
Copy link
Author

demo_app andrew$ bundle install --without productionUsing rake (0.9.2)
Using multi_json (1.0.3)
Using activesupport (3.1.0)
Using bcrypt-ruby (3.0.1)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.0)
Using erubis (2.7.0)
Using rack (1.3.4)
Using rack-cache (1.0.3)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.2)
Using actionpack (3.1.0)
Using mime-types (1.16)
Using polyglot (0.3.2)
Using treetop (1.4.10)
Using mail (2.3.0)
Using actionmailer (3.1.0)
Using arel (2.2.1)
Using tzinfo (0.3.30)
Using activerecord (3.1.0)
Using activeresource (3.1.0)
Using bundler (1.0.20)
Using coffee-script-source (1.1.2)
Using execjs (1.2.9)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Using json (1.6.1)
Using rdoc (3.10)
Using thor (0.14.6)
Using railties (3.1.0)
Using coffee-rails (3.1.1)
Using jquery-rails (1.0.16)
Using rails (3.1.0)
Using sass (3.1.10)
Using sass-rails (3.1.4)
Using sqlite3 (1.3.4)
Using uglifier (1.0.3)
Your bundle is complete! Use bundle show [gemname] to see where a bundled gem is installed.

@andrewhl
Copy link
Author

demo_app andrew$ heroku rake db:migrate
rake aborted!
Please install the postgresql adapter: gem install activerecord-postgresql-adapter (pg is not part of the bundle. Add it to Gemfile.)

Tasks: TOP => db:migrate => db:load_config
(See full trace by running task with --trace)

@andrewhl
Copy link
Author

demo_app andrew$ heroku rake db:migrate --trace
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
rake aborted!
Please install the postgresql adapter: gem install activerecord-postgresql-adapter (pg is not part of the bundle. Add it to Gemfile.)
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:71:in rescue in establish_connection' /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:68:inestablish_connection'
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:60:in establish_connection' /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:55:inestablish_connection'
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/railtie.rb:69:in block (2 levels) in <class:Railtie>' /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:36:ininstance_eval'
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:36:in execute_hook' /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:43:inblock in run_load_hooks'
/app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:42:in each' /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.1.0/lib/active_support/lazy_load_hooks.rb:42:inrun_load_hooks'
/app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/base.rb:2184:in <top (required)>' /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.1.0/lib/active_record/railties/databases.rake:6:inblock (2 levels) in <top (required)>'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:in call' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:205:inblock in execute'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:in each' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:200:inexecute'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:158:in block in invoke_with_call_chain' /usr/ruby1.9.2/lib/ruby/1.9.1/monitor.rb:201:inmon_synchronize'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in invoke_with_call_chain' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:176:inblock in invoke_prerequisites'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:174:in each' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:174:ininvoke_prerequisites'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:157:in block in invoke_with_call_chain' /usr/ruby1.9.2/lib/ruby/1.9.1/monitor.rb:201:inmon_synchronize'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:151:in invoke_with_call_chain' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/task.rb:144:ininvoke'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:112:in invoke_task' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:inblock (2 levels) in top_level'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:in each' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:90:inblock in top_level'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:in standard_exception_handling' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:84:intop_level'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:62:in block in run' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:129:instandard_exception_handling'
/app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/lib/rake/application.rb:59:in run' /app/.bundle/gems/ruby/1.9.1/gems/rake-0.9.2/bin/rake:32:in<top (required)>'
/app/.bundle/gems/ruby/1.9.1/bin/rake:19:in load' /app/.bundle/gems/ruby/1.9.1/bin/rake:19:in

'
Tasks: TOP => db:migrate => db:load_config

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