# 如何编辑生产服务器上的导入脚本？

**URL:** <https://meta.discourse.org/t/how-to-edit-an-import-script-on-the-production-server/282505>\
**Category:** Migration\
**Tags:** vanilla\
**Created:** [2023 年10 月 17 日 09:45 UTC](https://meta.discourse.org/t/how-to-edit-an-import-script-on-the-production-server/282505 "2023-10-17T09:45:17Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

作者： ![packman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/packman/32/289322_2.png) [@packman](https://meta.discourse.org/u/packman)\
发布日期： [2023 年10 月 17 日 13:01 UTC](https://meta.discourse.org/t/how-to-edit-an-import-script-on-the-production-server/282505/12 "2023-10-17T13:01:32Z")

</div>

> [@Canapin](#):
>
> 这不是正确的方法

这取决于需要修改什么。如果只是几个简单的更改，那么应该没问题。使用我找到的 SMF 导入脚本，它只为我做了一部分工作，所以我对其进行了大量修改，并重新运行了部分导入数十次，完整导入也进行了很多次。当你将新论坛内容与旧内容进行比较时，你会惊讶地发现有些东西并没有像你想象的那样奏效！我创建了几个脚本，可以删除之前的测试 Discourse 系统，安装一个新副本的 Discourse，然后使用最新版本的脚本开始另一次导入运行。

---

_[View the full topic](https://meta.discourse.org/t/how-to-edit-an-import-script-on-the-production-server/282505)._
