Crash when remapping domain name

(Cédric Moreau) #1

Hey there,

While trying to remap upload URLs since we changed of domain as mentioned in this thread, I get the following error:

/var/www/discourse# script/discourse remap

I get:

/usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- thor (LoadError)
        from /usr/local/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from script/discourse:3:in `<main>'

So I cannot perform the remap.

Am I missing something?

Edit: yes I am missing the fact I could run discourse remap instead.

(Michael - #2

gem install thor solves this.

Is there any way to restore your site from backup in the terminal?