NZOI / nztrain

The NZOI online judge and training site written in Ruby
18 stars 13 forks source link

Add env var DATABASE_INSTALL to skip PostgreSQL install #237

Closed tom93 closed 10 months ago

tom93 commented 10 months ago

And a lot of cleanup. Came up from #223.

(The GitHub runner already has the postgresql package installed, so this won't save an install in the current setup, but it may save an install in other environments.)

Comments: I don't know what config/database.yml.default is for (has been there since first commit, appears unused). We should eventually get rid of the install process that generates database.yml from the template, and at that point there would just be a database.yml that works out-of-the-box -- no need for a sample.

Merge using "rebase".

tom93 commented 10 months ago

(Deployed the trivial change to config/database.yml manually.)