Skip to content

Commit 8f2630b

Browse files
committed
Added sample config
1 parent aa371c2 commit 8f2630b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

content/_index.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,33 @@ openrun sync schedule --approve --promote \   github.com/openrundev/op
7070
</div>
7171
</div>
7272

73+
<style>
74+
.sample-config-box { width: 92%; }
75+
@media screen and (min-width: 768px) { .sample-config-box { width: 50%; } }
76+
</style>
77+
<div style="position: relative; width: 100vw; margin-left: calc(-50vw + 50%); display: flex; flex-direction: column; align-items: center; padding: 40px 0; box-sizing: border-box;">
78+
<div style="font-weight: bold; margin-bottom: 16px; font-size: 22px;">Sample OpenRun Config</div>
79+
<div class="sample-config-box" style="border-radius: 10px; overflow: hidden; border: 1px solid rgba(127,127,127,0.25); box-shadow: 0 2px 12px rgba(0,0,0,0.08);">
80+
<div style="padding: 10px 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; background: rgba(127,127,127,0.10); border-bottom: 1px solid rgba(127,127,127,0.2);">sample.star</div>
81+
<pre style="margin: 0; padding: 2px 20px; font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 13.5px; line-height: 1.6; overflow-x: auto; background: rgba(127,127,127,0.04);"><code style="font-family: inherit;">
82+
<span style="color: #6a737d; font-style: italic;"># Set resource limits (optional)</span>
83+
limits = {<span style="color: #22863a;">&quot;cpus&quot;</span>: <span style="color: #22863a;">&quot;1&quot;</span>, <span style="color: #22863a;">&quot;memory&quot;</span>: <span style="color: #22863a;">&quot;512m&quot;</span>}
84+
<span></span>
85+
86+
<span style="color: #6a737d; font-style: italic;"># Streamlit App Declaration</span>
87+
app(path=<span style="color: #22863a;">&quot;/misc/streamlit_example&quot;</span>, source=<span style="color: #22863a;">&quot;github.com/streamlit/streamlit-example&quot;</span>,
88+
&nbsp;&nbsp;&nbsp;&nbsp;git_branch=<span style="color: #22863a;">&quot;master&quot;</span>, spec=<span style="color: #22863a;">&quot;python-streamlit&quot;</span>, container_opts=limits)
89+
90+
<span style="color: #6a737d; font-style: italic;"># FastHTML App Declaration</span>
91+
app(path=<span style="color: #22863a;">&quot;fasthtml.:&quot;</span>, source=<span style="color: #22863a;">&quot;github.com/AnswerDotAI/fasthtml/examples&quot;</span>,
92+
&nbsp;&nbsp;&nbsp;&nbsp;spec=<span style="color: #22863a;">&quot;python-fasthtml&quot;</span>, params={<span style="color: #22863a;">&quot;APP_MODULE&quot;</span>:<span style="color: #22863a;">&quot;basic_ws:app&quot;</span>}, container_opts=limits)
93+
94+
<span style="color: #6a737d; font-style: italic;"># This is the complete build and deployment config for two apps.</span>
95+
</code></pre>
96+
97+
</div>
98+
</div>
99+
73100
<script>
74101
function copyCode(codeId, buttonElem) {
75102
const code = document.getElementById(codeId).textContent;

0 commit comments

Comments
 (0)