העלאת ערכת נושא דרך Theme Creator CLI

סיכום מבוסס בינה מלאכותית

hrayner is trying to upload a theme using the Discourse Theme Creator CLI but is encountering issues because the ‘run’ command was added recently and their Docker image doesn’t include the updated gem. They attempted to update the gem inside the container using bundle config unset deployment and bundle exec bundle update --all, but encountered installation errors for dependencies like raindrops. They suspect they’re on the wrong track and are seeking guidance on how to properly update the discourse_theme gem to enable the CLI command. The post includes links to the README and the merged pull request that introduced the ‘run’ command.

Hello!

I’m trying to upload my theme using the Discourse Theme Creator CLI and I’ve run into a problem.

The README says to use the ‘run’ command. I’m running Discourse in a docker container and unfortunately the run command didn’t exist until recently (see this merged pull request) , so my docker image doesn’t have the new gem in it that allows this command to be run from the command line.

So, I think I need to update the discourse theme ruby gem in order to be able to run this new command. Does anyone have an idea of how I can update it?

I have tried entering the docker container and running these two commands

bundle config unset deployment
bundle exec bundle update --all

But that causes many errors that look like this (for various gems)

An error occurred while installing raindrops (0.20.0), and Bundler cannot continue.
Make sure that `gem install raindrops -v '0.20.0' --source 'https://rubygems.org/'` succeeds before bundling.

I’ve tried installing the gems individually as above but I get another error. I think I may be on the wrong track here so any help would be greatly appreciated.

Thank you! :slight_smile: