Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby

Error on pushing to heroku

Hi, Whenever I try to use push my app on heroku using the command: git push heroku master

I get the following errors:

Bundle completed (25.92s) Cleaning up the bundler cache. -----> Writing config/database.yml to read from DATABASE_URL -----> Preparing app for Rails asset pipeline Running: rake assets:precompile Connecting to database specified by DATABASE_URL 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.
 !

 !     Push rejected, failed to compile Ruby app```

What should I do? Please help

3 Answers

Try putting this line:

config.assets.initialize_on_precompile = false

inside of config/application.rb.

@Jason Rader thanks. Its working now.

I'm glad!