# 网站改版脚本：最佳场地是什么？

**URL:** <https://meta.discourse.org/t/site-rearrangement-scripting-whats-the-best-venue/241892>\
**Category:** Development\
**Created:** [2022 年10 月 14 日 01:50 UTC](https://meta.discourse.org/t/site-rearrangement-scripting-whats-the-best-venue/241892 "2022-10-14T01:50:16Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![mcdanlj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcdanlj/32/131829_2.png) [@mcdanlj](https://meta.discourse.org/u/mcdanlj)\
发布日期： [2022 年10 月 14 日 16:52 UTC](https://meta.discourse.org/t/site-rearrangement-scripting-whats-the-best-venue/241892/6 "2022-10-14T16:52:42Z")

</div>

是的，我绝对希望人们能够找到它！

我开始时使用了：

```ruby
require_relative "../config/environment"

```

以便在将其放置在 scripts 目录中时能够正常工作。是否有常见的模式可以将其放在 discourse 目录之外？（我在 `.gitignore` 中没有看到像 plugins 模式那样用于检出 plugins 之外的内容。）

如果没有，我可以在安装说明中只说“将其复制到 scripts/”，但我想知道是否有我能做得更好的地方。

---

_[View the full topic](https://meta.discourse.org/t/site-rearrangement-scripting-whats-the-best-venue/241892)._
