在同时托管 Discourse 生产实例的主机上设置 Discord 预发布实例,有什么建议或步骤可循吗?
我考虑的是 Rails 应用的标准做法,但由于具体的安装配置和步骤,我想先了解一个大致的思路。
最终,在完成配置和设置后,我的想法是将生产数据库同步到预发布环境。
在同时托管 Discourse 生产实例的主机上设置 Discord 预发布实例,有什么建议或步骤可循吗?
我考虑的是 Rails 应用的标准做法,但由于具体的安装配置和步骤,我想先了解一个大致的思路。
最终,在完成配置和设置后,我的想法是将生产数据库同步到预发布环境。
You can do that if you have something like traefik reverse proxying to multiple containers. It’s lots simpler to have two droplets, one of which you could delete when you’re not using it. That way, you’ve still got a Standard Install that’s easy to debug as well as get help here.
EDIT: And if you want a configuration that includes Traefik as the front end with multiple Discourse, WordPress and Ghost containers as well as prometheus and Graphana containers to make pretty graphs I can do that for you.
My preferred way to do that is by keeping backups in an S3 bucket (or GCP or Digital Ocean equivalent). You could have two containers share a backup mount if they’re on the same server, but the S3 solution is really nice and makes it easy to move to a new server should disaster strike.