@@ -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 ;" >" ; cpus" ; </span >: <span style =" color : #22863a ;" >" ; 1" ; </span >, <span style =" color : #22863a ;" >" ; memory" ; </span >: <span style =" color : #22863a ;" >" ; 512m" ; </span >}
84+ <span ></span >
85+
86+ <span style =" color : #6a737d ; font-style : italic ;" ># Streamlit App Declaration</span >
87+ app(path=<span style =" color : #22863a ;" >" ; /misc/streamlit_example" ; </span >, source=<span style =" color : #22863a ;" >" ; github.com/streamlit/streamlit-example" ; </span >,
88+   ;  ;  ;  ; git_branch=<span style =" color : #22863a ;" >" ; master" ; </span >, spec=<span style =" color : #22863a ;" >" ; python-streamlit" ; </span >, container_opts=limits)
89+
90+ <span style =" color : #6a737d ; font-style : italic ;" ># FastHTML App Declaration</span >
91+ app(path=<span style =" color : #22863a ;" >" ; fasthtml.:" ; </span >, source=<span style =" color : #22863a ;" >" ; github.com/AnswerDotAI/fasthtml/examples" ; </span >,
92+   ;  ;  ;  ; spec=<span style =" color : #22863a ;" >" ; python-fasthtml" ; </span >, params={<span style =" color : #22863a ;" >" ; APP_MODULE" ; </span >:<span style =" color : #22863a ;" >" ; basic_ws:app" ; </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 >
74101function copyCode (codeId , buttonElem ) {
75102 const code = document .getElementById (codeId).textContent ;
0 commit comments