Hello, I’ve submitted a pull request a little while ago and was wondering if I could get some feedback on it? Thanks!
PR description, for convenience:
This set of changes does two things. They are mostly unrelated but they were essential for us in building our Discourse instance and, I believe, they are generally useful.
Better support for RAILS_RELATIVE_URL: we have fixed numerous places where it wasn’t respected.
Running under a a relative URL (domain.com/forum/…) vs subdomain (forum.domain.com) is very useful from the SEO point of view, see, for instance, here.
Better support for deployments with external Postgres, Redis and nginx.
The repo contains a Dockerfile which builds an image that includes only Discourse itself. This makes it easier to deploy, e.g., in AWS, using RDS (hosted Postgres) and ElastiCache (hosted Redis). The repo also contains a fig.yml, which helps you use fig to do local development using an equivalent setup (the Vagrant-based setup still works just fine). The fig setup is documented in docs/fig.md.