How to upload to heroku? the apps always failed. I'm uploading a demo app. Please help. C:\Sites\demo_app>git push heroku master Counting objects: 136, done. Delta compression using up to 2 threads. Compressing objects: 100% (120/120), done. Writing objects: 100% (136/136), 38.92 KiB | 0 bytes/s, done. Total 136 (delta 24), reused 0 (delta 0) remote: Compressing source files... done. remote: Building source: remote:
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-1.9.3
remote: ###### WARNING:
remote: Removing `Gemfile.lock` because it was generated on Windows.
remote: Bundler will do a full resolve so native gems are handled properl
y.
remote: This may result in unexpected gem versions being used in your app
.
remote: In rare occasions Bundler may not be able to resolve your depende
ncies at all.
remote: https:// http://ift.tt/1CqVyhO
remote:
remote: -----> Installing dependencies using 1.7.12
remote: Running: bundle install --without development:test --path vendor/
bundle --binstubs vendor/bundle/bin -j4
remote: Fetching gem metadata from https:// rubygems . org/.........
remote: Resolving dependencies...
remote: Installing multi_json 1.11.0
remote: Installing rake 10.4.2
remote: Installing i18n 0.7.0
remote: Installing builder 3.0.4
remote: Installing journey 1.0.4
remote: Installing erubis 2.7.0
remote: Installing rack 1.4.5
remote: Installing tilt 1.4.1
remote: Installing hike 1.2.3
remote: Installing mime-types 1.25.1
remote: Installing polyglot 0.3.5
remote: Installing arel 3.0.3
remote: Installing tzinfo 0.3.43
remote: Installing bootstrap-sass 2.1.0.0
remote: Using bundler 1.7.12
remote: Installing will_paginate 3.0.3
remote: Installing coffee-script-source 1.9.1
remote: Installing execjs 2.4.0
remote: Installing thor 0.19.1
remote: Installing bcrypt-ruby 3.0.1
remote: Installing sass 3.4.13
remote: Installing activesupport 3.2.16
remote: Installing json 1.8.2
remote: Installing faker 1.0.1
remote: Installing rack-cache 1.2
remote: Installing rack-test 0.6.3
remote: Installing rack-ssl 1.3.4
remote: Installing sprockets 2.2.3
remote: Installing bootstrap-will_paginate 0.0.6
remote: Installing treetop 1.4.15
remote: Installing coffee-script 2.3.0
remote: Installing uglifier 1.2.3
remote: Installing activemodel 3.2.16
remote: Installing rdoc 3.12.2
remote: Installing mail 2.5.4
remote: Installing actionpack 3.2.16
remote: Installing pg 0.12.2
remote: Installing activerecord 3.2.16
remote: Installing activeresource 3.2.16
remote: Installing actionmailer 3.2.16
remote: Installing railties 3.2.16
remote: Installing rails 3.2.16
remote: Installing coffee-rails 3.2.2
remote: Installing jquery-rails 2.0.2
remote: Installing sass-rails 3.2.5
remote: Your bundle is complete!
remote: Gems in the groups development and test were not installed.
remote: It was installed into ./vendor/bundle
remote: Post-install message from rdoc:
remote: Depending on your version of ruby, you may need to install ruby r
doc/ri data:
remote: <= 1.8.6 : unsupported
remote: = 1.8.7 : gem install rdoc-data; rdoc-data --install
remote: = 1.9.1 : gem install rdoc-data; rdoc-data --install
remote: >= 1.9.2 : nothing to do! Yay!
remote: Bundle completed (28.37s)
remote: Cleaning up the bundler cache.
remote: -----> Writing config/database.yml to read from DATABASE_URL
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/p
lugins! Support for these plugins will be removed in Rails 4.0. Move them out an
d bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and
config/initializers/myplugin.rb. See the release notes for more on this: http:/
/http://ift.tt/wl0LFP. (called from
<top (required)> at /tmp/build_3d501f967e8a893fc5bf5771021aaa19/Rakefile:7)
remote: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/p
lugins! Support for these plugins will be removed in Rails 4.0. Move them out an
d bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and
config/initializers/myplugin.rb. See the release notes for more on this: http:/
/http://ift.tt/wl0LFP. (called from
<top (required)> at /tmp/build_3d501f967e8a893fc5bf5771021aaa19/Rakefile:7)
remote: rake aborted!
remote: PGError: could not connect to server: Connection refused
remote: Is the server running on host "127.0.0.1" and accepting
remote: TCP/IP connections on port 5432?
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_ad
apter.rb:1222:in `initialize'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_ad
apter.rb:1222:in `new'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_ad
apter.rb:1222:in `connect'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_ad
apter.rb:324:in `initialize'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_ad
apter.rb:28:in `new'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/postgresql_ad
apter.rb:28:in `postgresql_connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:315:in `new_connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:325:in `checkout_new_connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:247:in `block (2 levels) in checkout'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:242:in `loop'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:242:in `block in checkout'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:239:in `checkout'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:102:in `block in connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:101:in `connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_pool.rb:410:in `retrieve_connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_specification.rb:171:in `retrieve_connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/connection_adapters/abstract/conn
ection_specification.rb:145:in `connection'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/model_schema.rb:310:in `clear_cac
he!'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activerecord-3.2.16/lib/active_record/railtie.rb:103:in `block (2 level
s) in <class:Railtie>'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:418:in `_run__2547
292593734512417__prepare__2102967819796409033__callbacks'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:405:in `__run_call
back'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:385:in `_run_prepa
re_callbacks'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/callbacks.rb:81:in `run_callbac
ks'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:74:in `pre
pare!'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/actionpack-3.2.16/lib/action_dispatch/middleware/reloader.rb:48:in `pre
pare!'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/application/finisher.rb:47:in `block in <modu
le:Finisher>'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initiali
zers'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing
'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/config/environment.rb
:5:in `<top (required)>'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require
'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `block i
n require'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:236:in `load_de
pendency'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/activesupport-3.2.16/lib/active_support/dependencies.rb:251:in `require
'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/application.rb:103:in `require_environment!'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/railties-3.2.16/lib/rails/application.rb:305:in `block (2 levels) in in
itialize_tasks'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:93:in `block (2 levels) in
<top (required)>'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:60:in `block (3 levels) in
<top (required)>'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rak
e_task'
remote: /tmp/build_3d501f967e8a893fc5bf5771021aaa19/vendor/bundle/ruby/1.
9.1/gems/actionpack-3.2.16/lib/sprockets/assets.rake:29:in `block (2 levels) in
<top (required)>'
remote: Tasks: TOP => environment
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: ! Attempted to access a nonexistent database:
remote: ! `http://ift.tt/1lO04NZ`
remote: !
remote:
remote: ! Push rejected, failed to compile Ruby app
remote:
remote: Verifying deploy...
remote:
remote: ! Push rejected to thawing-castle-8637.
remote:
To `http://ift.tt/1CbssSq`
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to `'http://ift.tt/1CbssSq'`
--------------------------------------------------------------------------------
**here's the heroku logs.**
Your version of git is 1.9.4.. Which has serious security vulnerabilities.
More information here: http://ift.tt/1CqVAq4
it_clients_on_windows_and_os_x
2015-03-24T15:12:11.644216+00:00 heroku[api]: Release v2 created by ericjohnigle
sia@gmail.com
2015-03-24T15:12:11.644216+00:00 heroku[api]: Enable Logplex by ericjohniglesia@
gmail.com
2015-03-24T15:46:38.367576+00:00 heroku[router]: at=info code=H81 desc="Blank ap
p" method=GET path="/" host=thawing-castle-8637.herokuapp.com request_id=bd869b8
f-a189-41e7-8e82-4e311eca439c fwd="119.95.229.158" dyno= connect= service= statu
s=502 bytes=
2015-03-24T15:46:39.806763+00:00 heroku[router]: at=info code=H81 desc="Blank ap
p" method=GET path="/favicon.ico" host=thawing-castle-8637.herokuapp.com request
_id=8a1d7997-a56c-4e11-9e15-092b35114bea fwd="119.95.229.158" dyno= connect= ser
vice= status=502 bytes=
2015-03-24T16:47:07.041640+00:00 heroku[api]: Starting process with command `rak
e db:migrate` by ericjohniglesia@gmail.com
2015-03-24T16:47:08.817792+00:00 heroku[run.9706]: Awaiting client
2015-03-24T16:47:08.849854+00:00 heroku[run.9706]: Starting process with command
`rake db:migrate`
2015-03-24T16:47:09.250869+00:00 heroku[run.9706]: State changed from starting t
o up
2015-03-24T16:47:11.796489+00:00 heroku[run.9706]: State changed from up to comp
lete
2015-03-24T16:47:11.785097+00:00 heroku[run.9706]: Process exited with status 1
2015-03-25T06:14:53.133061+00:00 heroku[api]: Starting process with command `rak
e db:migrate` by ericjohniglesia@gmail.com
2015-03-25T06:14:54.495037+00:00 heroku[run.1381]: Awaiting client
2015-03-25T06:14:54.822122+00:00 heroku[run.1381]: State changed from starting t
o up
2015-03-25T06:14:56.274985+00:00 heroku[run.1381]: Starting process with command
`rake db:migrate`
2015-03-25T06:14:58.142763+00:00 heroku[run.1381]: State changed from up to comp
lete
2015-03-25T06:14:58.130602+00:00 heroku[run.1381]: Process exited with status 1
Can someone here fix the the problem thanks.
Aucun commentaire:
Enregistrer un commentaire