# Discobot, avatars, uploads include hard-code hostname in cooked

**URL:** <https://meta.discourse.org/t/discobot-avatars-uploads-include-hard-code-hostname-in-cooked/85736>\
**Category:** Migration\
**Created:** [19 באפריל,‏ 2018,‏ 5:46pm UTC](https://meta.discourse.org/t/discobot-avatars-uploads-include-hard-code-hostname-in-cooked/85736 "2018-04-19T17:46:42Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [19 באפריל,‏ 2018,‏ 11:05pm UTC](https://meta.discourse.org/t/discobot-avatars-uploads-include-hard-code-hostname-in-cooked/85736/5 "2018-04-19T23:05:58Z")

</div>

> [@zogstrip](#):
>
> I’m curious, are you importing in development or production mode?

This is in production mode, on a variation of `phpbb3.template.yml`. In the past I’ve always used a development environment, so perhaps I have some fundamental misunderstanding of how it works in Development.

> [@codinghorror](#):
>
> I believe that setting has caused a lot of trauma recently (and as I understand it, is meant to be strictly local dev only) so I’m surprised you would reach for it again.

Sorry about that. I suspect that it was more traumatic for Josh and Team than I know.

Yes, hence:

> [@pfaffman](#):
>
> Or maybe turn it off before import and restore it after the import is done?

My notion was that if I set that then the above-mentioned URLs would have to correct hostname so they wouldn’t need to be remapped.

**But** `script/discourse remap` seems to be the solution that I’m searching for.

Speaking of trauma, I’ve got 2 imports (one for a hosted customer) that each took over a week to run that went off the rails, so I really want to make sure that I don’t goof it up again.

---

_[View the full topic](https://meta.discourse.org/t/discobot-avatars-uploads-include-hard-code-hostname-in-cooked/85736)._
