If you've been using the rails asset pipeline for some time, chances are that you've run into one of these errors when trying to precompile the assets: RAILS_ENV=production bin/rake assets:precompile => rake aborted! FATAL: database "..." does not exist // PG::ConnectionBad: could not connect to server: Connection refused Usually we would just go ahead and create the db, but this time we wanted to