I have an existing Discourse community with existing users. I added custom user fields that I need to update from an external source. I created and tested a .rb script in a local development environment. I’d now like to run that script against the production instance. Production environment is a self-hosted docker install at Digital Ocean.
I now need help with the following two (N00b) tasks:
- How do I copy the .rb file into the docker container from the host server?
- How do I execute the .rb file within the docker container?
I plan to take a backup of the production Discourse just before executing the script incase ‘bad things happen’.
Alternatively, am I better to use backup/restore to execute the script locally, then restore that to production? Just not wild about the downtime required for this approach.
Thanks for the help!