Skip to content

Instantly share code, notes, and snippets.

@vincentwoo
Last active December 14, 2015 23:49
Show Gist options
  • Save vincentwoo/5168806 to your computer and use it in GitHub Desktop.
Save vincentwoo/5168806 to your computer and use it in GitHub Desktop.
heroku database_url issue
vwoo@vwoo-VirtualBox:~/tweetshirt$ heroku pg:promote HEROKU_POSTGRESQL_ROSE_URL
Promoting HEROKU_POSTGRESQL_ROSE_URL to DATABASE_URL... done
vwoo@vwoo-VirtualBox:~/tweetshirt$ git push heroku master
Counting objects: 288, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (268/268), done.
Writing objects: 100% (288/288), 54.12 KiB, done.
Total 288 (delta 127), reused 3 (delta 0)
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/........
Fetching gem metadata from https://rubygems.org/..
Installing rake (10.0.3)
Installing i18n (0.6.4)
Installing minitest (4.6.2)
Installing multi_json (1.6.1)
Installing atomic (1.0.1)
Installing thread_safe (0.1.0)
Installing tzinfo (0.3.37)
Installing activesupport (4.0.0.beta1)
Installing builder (3.1.4)
Installing erubis (2.7.0)
Installing rack (1.5.2)
Installing rack-test (0.6.2)
Installing actionpack (4.0.0.beta1)
Installing mime-types (1.21)
Installing polyglot (0.3.3)
Installing treetop (1.4.12)
Installing mail (2.5.3)
Installing actionmailer (4.0.0.beta1)
Installing activemodel (4.0.0.beta1)
Installing activerecord-deprecated_finders (0.0.3)
Installing arel (4.0.0.beta2)
Installing activerecord (4.0.0.beta1)
Installing andand (1.3.3)
Installing coffee-script-source (1.6.1)
Installing execjs (1.4.0)
Installing coffee-script (2.2.0)
Using json (1.7.7)
Installing rdoc (3.12.2)
Installing thor (0.17.0)
Installing railties (4.0.0.beta1)
Installing coffee-rails (4.0.0.beta1)
Installing multipart-post (1.2.0)
Installing faraday (0.8.6)
Installing hike (1.2.1)
Installing jquery-rails (2.2.1)
Installing kgio (2.8.0)
Installing newrelic_rpm (3.5.8.72)
Installing oauth (0.4.7)
Installing pg (0.14.1)
Using bundler (1.3.2)
Installing tilt (1.3.5)
Installing sprockets (2.9.0)
Installing sprockets-rails (2.0.0.rc3)
Installing rails (4.0.0.beta1)
Installing raindrops (0.10.0)
Installing sass (3.2.7)
Installing sass-rails (4.0.0.beta1)
Installing simple_oauth (0.2.0)
Installing twitter (4.6.1)
Installing twitter-bootstrap-rails (2.2.6)
Installing uglifier (1.3.0)
Installing unicorn (4.6.2)
Your bundle is complete! It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Post-install message from newrelic_rpm:
# New Relic Ruby Agent Release Notes #
## v3.5.8 ##
* Key Transactions
The Ruby agent now supports Key Transactions! Check out more details on the
feature at https://newrelic.com/docs/site/key-transactions
* Ruby 2.0
The Ruby agent is compatible with Ruby 2.0.0 which was just released.
* Improved Sinatra instrumentation
Several cases around the use of conditions and pass in Sinatra are now
better supported by the Ruby agent. Thanks Konstantin for the help!
* Outbound HTTP headers
Adds a 'X-NewRelic-ID' header to outbound Net::HTTP requests. This change
helps improve the correlation of performance between services in a service-
oriented architecture for a forthcoming feature. In the meantime, to disable
the header, set this in your newrelic.yml:
cross_application_tracer:
enabled: false
* Automatically detect Resque dispatcher
The agent does better auto-detection for the Resque worker process.
This should reduce the need to set NEW_RELIC_DISPATCHER=resque directly.
See https://github.com/newrelic/rpm/blob/master/CHANGELOG for a full list of
changes.
Post-install message from twitter-bootstrap-rails:
Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS.
**********************************************
ExecJS supports these runtimes:
therubyracer - Google V8 embedded within Ruby
therubyrhino - Mozilla Rhino embedded within JRuby
Node.js
Apple JavaScriptCore - Included with Mac OS X
Microsoft Windows Script Host (JScript)
**********************************************
Cleaning up the bundler cache.
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2013-03-15T10:12:15.053194 #1724] INFO -- : Writing /tmp/build_3pso0y1g5vip6/public/assets/rails-2ee5a98f26fbf8c6c461127da73c47eb.png
I, [2013-03-15T10:12:15.496608 #1724] INFO -- : Writing /tmp/build_3pso0y1g5vip6/public/assets/application-f7698da6cf50e5feb16e229cb7f173f4.js
I, [2013-03-15T10:12:21.043706 #1724] INFO -- : Writing /tmp/build_3pso0y1g5vip6/public/assets/application-cf0d8742f91f1b27d9ed2ecee5e4bfb0.css
Asset precompilation completed (8.78s)
-----> Rails plugin injection
-----> Discovering process types
Procfile declares types -> web
Default types for Ruby/Rails -> console, rake, worker
-----> Compiled slug size: 36.1MB
-----> Launching... done, v7
-----> Deploy hooks scheduled, check output in your logs
http://tweetshirt.herokuapp.com deployed to Heroku
To git@heroku.com:tweetshirt.git
* [new branch] master -> master
vwoo@vwoo-VirtualBox:~/tweetshirt$ heroku run bash
Running `bash` attached to terminal... up, run.9724
~ $ ls config
application.rb database.yml.example environments locales routes.rb
boot.rb environment.rb initializers newrelic.yml unicorn.rb
~ $ exit
vwoo@vwoo-VirtualBox:~/tweetshirt$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment