I recently copied the
/shared database folder from our production to staging server (to make both environments match).
I realized the links are pointing to the previous domain, so I followed this guide
When running this command inside the container:
discourse remap forums.coretabs.net discourse.coretabs.net
I get a
duplicate key value error:
Rewriting all occurences of forums.coretabs.net to discourse.coretabs.net THIS TASK WILL REWRITE DATA, ARE YOU SURE (type YES) YES Error: ERROR: duplicate key value violates unique constraint "index_incoming_domains_on_name_and_https_and_port" DETAIL: Key (name, https, port)=(discourse.coretabs.net, t, 443) already exists. The remap has only been partially applied due to the error above. Please re-run the script again.