Skip to content

Commit ee57186

Browse files
author
Dan Miller
authored
docs: document hot_reload (#1121)
1 parent 8be1950 commit ee57186

File tree

7 files changed

+26
-1
lines changed

7 files changed

+26
-1
lines changed

docs/_build/doctrees/api.doctree

2.37 KB
Binary file not shown.
97 Bytes
Binary file not shown.

docs/_build/html/api.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,21 @@
208208
</table>
209209
</dd></dl>
210210

211+
<dl class="method">
212+
<dt id="api.FastBuild.hot_reload">
213+
<code class="descname">hot_reload</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#api.FastBuild.hot_reload" title="Permalink to this definition"></a></dt>
214+
<dd><p>Setting this on a <code class="docutils literal notranslate"><span class="pre">FastBuild</span></code> image tells Tilt that this container knows how to automatically reload any changes in the container. As a result there is no need to restart it.</p>
215+
<p>This is useful for containers that run something like nodemon or webpack Hot Module Replacement to update running processes quickly.</p>
216+
<table class="docutils field-list" frame="void" rules="none">
217+
<col class="field-name" />
218+
<col class="field-body" />
219+
<tbody valign="top">
220+
<tr class="field-odd field"><th class="field-name">Return type:</th><td class="field-body"><code class="docutils literal notranslate"><span class="pre">None</span></code></td>
221+
</tr>
222+
</tbody>
223+
</table>
224+
</dd></dl>
225+
211226
<dl class="method">
212227
<dt id="api.FastBuild.run">
213228
<code class="descname">run</code><span class="sig-paren">(</span><em>trigger=[]</em><span class="sig-paren">)</span><a class="headerlink" href="#api.FastBuild.run" title="Permalink to this definition"></a></dt>

docs/_build/html/genindex.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ <h2 id="H">H</h2>
242242
<table style="width: 100%" class="indextable genindextable"><tr>
243243
<td style="width: 33%; vertical-align: top;"><ul>
244244
<li><a href="api.html#api.helm">helm() (in module api)</a>
245+
</li>
246+
</ul></td>
247+
<td style="width: 33%; vertical-align: top;"><ul>
248+
<li><a href="api.html#api.FastBuild.hot_reload">hot_reload() (api.FastBuild method)</a>
245249
</li>
246250
</ul></td>
247251
</tr></table>

docs/_build/html/objects.inv

8 Bytes
Binary file not shown.

docs/_build/html/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/api/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ def run(cmd: str, trigger: Union[List[str], str] = []) -> None:
5959
"""
6060
pass
6161

62+
def hot_reload() -> None:
63+
"""Setting this on a ``FastBuild`` image tells Tilt that this container knows how to automatically reload any changes in the container. As a result there is no need to restart it.
64+
65+
This is useful for containers that run something like nodemon or webpack Hot Module Replacement to update running processes quickly."""
66+
pass
67+
6268

6369
def fast_build(img_name: str, dockerfile_path: str, entrypoint: str = "") -> FastBuild:
6470
"""Initiates a docker image build that supports ``add`` s and ``run`` s, and that uses a cache for subsequent builds.

0 commit comments

Comments
 (0)