# 自定义部署的最佳实践

**URL:** <https://meta.discourse.org/t/best-practices-for-customizing-deployment/290048>\
**Category:** Self-hosting\
**Created:** [2023年十二月29日 21:25 UTC](https://meta.discourse.org/t/best-practices-for-customizing-deployment/290048 "2023-12-29T21:25:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![aas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aas/32/289331_2.png) [@aas](https://meta.discourse.org/u/aas)\
**Post date:** [2023年十二月29日 21:28 UTC](https://meta.discourse.org/t/best-practices-for-customizing-deployment/290048/2 "2023-12-29T21:28:11Z")

</div>

> [@aas](#):
>
> 哪里可以放置我的自定义模板？

看起来我可以直接在 `app.yml` 中添加 `replace` 部分，而不是像这里提到的那样使用模板：

> [@How can I update nginx.conf without resetting it on rebuild?](https://meta.discourse.org/t/how-can-i-update-nginx-conf-without-resetting-it-on-rebuild/48102/2):
>
> You have to use replace commands in your app.yml to make the edits to the config files as part of the build process. There’s [lots of examples in the discourse\_docker repo](https://github.com/discourse/discourse_docker/search?utf8=%E2%9C%93&q=replace).

---

_[View the full topic](https://meta.discourse.org/t/best-practices-for-customizing-deployment/290048)._
