I’m writing a migration script and I want to set the s3_upload_bucket site setting programmatically. I found a method to set it when inside the docker instance:
echo 'SiteSetting.s3_upload_bucket="mybucket"' | bundle exec rails c
But last contains a pipe so I chaining it with docker exec -it app <command> results in an error
Just add that SiteSetting like to your importer. I’ve added similar code to disable outgoing mail to several importers. You can help grep the importer directory for "Site* for examples.