rails/docked

Problem with PG gem

siba2893 opened this issue · 3 comments

If trying to create a rails app from scratch using the --database=postgresql flag it will run into an error where the pg gem wont install because it lacks of a psql installation.

Got it makes sense.

For anyone interested in using other databases / javascript options from the beginning in a Dockerized Rails app, I wrote a bash script which should do the trick. It uses dockerfile-rails to generate a compose file, which it then copies and edits to provide the dev enviroment.