# My broken Discourse install prevents theme import

**URL:** <https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657>\
**Category:** Support\
**Tags:** unsupported-install\
**Created:** [February 7, 2019, 8:36am UTC](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657 "2019-02-07T08:36:06Z")\
**Posts on this page:** 1\
**Showing post:** 16

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [March 4, 2019, 12:01pm UTC](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657/16 "2019-03-04T12:01:04Z")

</div>

You could do it on the rails console. Take a look at the code for the theme importer to see how:

> <https://github.com/discourse/discourse/blob/main/app/controllers/admin/themes_controller.rb#L93>

To import a new theme, I think it would be as simple as

```ruby
RemoteTheme.update_tgz_theme("/path/to/theme.tar.gz", user: Discourse.system_user)

```

---

_[View the full topic](https://meta.discourse.org/t/my-broken-discourse-install-prevents-theme-import/108657)._
