0

I need to make it to make my jQuery working on Heroku.

Here is my console:

    $ rake assets:precompile
    c:/Ruby192/bin/ruby.exe c:/Ruby192/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
  rake aborted!
  Access denied for user 'root'@'localhost' (using password: NO)
  Tasks: TOP => environment
  (See full trace by running task with --trace)
   rake aborted!
  Command failed with status (1): [c:/Ruby192/bin/ruby.exe c:/Ruby192/bin/rak...]
  Tasks: TOP => assets:precompile
  (See full trace by running task with --trace)

When I try do run:

     $ assets:precompile
     sh: assets:precompile: command not found

EDITED: Also I added this line to application.rb:

      config.assets.initialize_on_precompile = false
Denys Medynskyi
  • 2,353
  • 8
  • 39
  • 70
  • 1
    This is failing because your database credentials are not correct for the `production` environment. Secondly, `assets:precompile` should be `rake assets:precompile` like the first time you used it – Lee Jarvis Jul 05 '12 at 16:26
  • Correct production section in database config. I think, that the simplest solution is to copy development config. – cutalion Jul 05 '12 at 21:51

1 Answers1

2

You have mentioned wrong username and password of mysql. Some gems which need database access for assets:precompile.

vajapravin
  • 1,363
  • 3
  • 16
  • 29