संपादित करें: मैं रेल छात्रों पर एक नया रूबी हूं।उसकी रीक संपत्तियों को निरस्त करने में त्रुटि - प्रीकंपाइल
मेरे गिट पुश हेरोकू मास्टर के बाद, मैं हेरोोकू के साथ मुद्दों में भाग रहा हूं। यहां नवीनतम और महानतम है, रेक संपत्तियों को निरस्त करना: प्रीकंपाइल।
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
could not connect to server: Connection refused
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 5432?
Tasks: TOP => environment
(See full trace by running task with --trace)
Precompiling assets failed, enabling runtime asset compilation
Injecting rails31_enable_runtime_asset_compilation
Please see this article for troubleshooting help:
http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
नीचे शामिल मेरी Gemfile की सामग्री हैं:
gem 'rails', '3.2.8'
gem 'bootstrap-sass', '2.1'
gem 'pg'
group :development, :test do
gem 'rspec-rails'
gem 'guard-rspec'
gem 'guard-spork'
gem 'spork'
gem 'annotate'
gem 'database_cleaner'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
end
platforms :jruby do
gem 'trinidad'
gem 'jruby-openssl'
end
gem 'jquery-rails'
# Use unicorn as the web server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'ruby-debug'
# Bundle the extra gems:
gem 'RedCloth', '~> 4.2.9', :require => 'redcloth'
gem 'ruby-openid', :require => 'openid'
gem 'rack-openid', :require => 'rack/openid'
gem 'aaronh-chronic', :require => 'chronic' # Fixes for 1.9.2
gem 'coderay'
gem 'lesstile'
gem 'formtastic'
gem 'will_paginate', '~> 3.0.2'
gem 'exception_notification', '~> 2.5.2'
gem 'open_id_authentication'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
group :test do
gem 'database_cleaner'
gem 'cucumber-rails', :require => false
gem 'cucumber-websteps', :require => false
gem 'factory_girl'
gem 'rspec'
gem 'nokogiri', '~> 1.5.0'
gem 'webrat'
end
क्या समस्या हो सकती है?
अद्यतन: मैंने --trace के साथ रेक आदेश चलाया, और उसने मुझे विफलता के साथ चेतावनी दी क्योंकि उत्पादन डेटाबेस मौजूद नहीं था। मैं डेटाबेस बनाया है, और --trace फिर से भाग है, और यह मैं वर्तमान में क्या फेंक दिया जा रहा है है:
Command failed with status (1): [/usr/local/Cellar/ruby/1.9.3-p286/bin/ruby...]
यह वही था जो मुझे चाहिए, बहुत बहुत धन्यवाद। –
कुंजी बिंदु नीचे उल्लिखित है, सुनिश्चित करें कि आप उस परिवर्तन को प्रतिबद्ध करते हैं! – CJBrew