jwhitley / requirejs-rails

RequireJS support for your Rails 3 or 4 application
MIT License
592 stars 202 forks source link

Why requirejs-rails need to connect to database on asset:precompile? #224

Open chenxeed opened 9 years ago

chenxeed commented 9 years ago

I was wondering that when I want to precompile my assets in staging, there's connection error because it cannot connect to my staging database. But the concern is, why requirejs precompile need to connect to database, while normal assets:precompile doesn't?

medyo commented 9 years ago

I've no idea but you can set development database details as production, precompile assets then revert to old details.