0

jQuery を Heroku で動作させるには、それを作成する必要があります。

ここに私のコンソールがあります:

    $ 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)

私が実行しようとすると:

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

編集: また、この行を application.rb に追加しました:

      config.assets.initialize_on_precompile = false
4

1 に答える 1

2

mysql の間違ったユーザー名とパスワードについて言及しました。assets:precompile のデータベース アクセスを必要とするいくつかの gem。

于 2012-07-08T12:31:13.340 に答える