RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Use a fake DB adapter to avoid connection errors with rails assets precompile

If you are using docker for your rails deploys you might have run into the issue of compiling your assets before you database container is available. The usual solution is to precompile the assets on your local machine and track them within you version control system. There is, however, an alternative: use a fake DB adapter during asset compilation.

http://blog.zeit.io/use-a-fake-db-adapter-to-play-nice-with-rails-assets-precompilation/

Comments

Seems unable to visit the page The A record exists but I cannot even ping the IP

@PIKACHUEXE: Works fine for me…

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in