We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d0e500 commit 0228322Copy full SHA for 0228322
.github/workflows/deploy.yaml
@@ -17,3 +17,6 @@ jobs:
17
- name: "Move files to /opt/streamlit"
18
run: |
19
sudo cp -r . /opt/streamlit
20
+ sudo cp streamlit.service /etc/systemd/system/streamlit.service
21
+ sudo systemctl daemon-reload
22
+ sudo systemctl restart streamlit
streamlit.service
@@ -0,0 +1,12 @@
1
+[Unit]
2
+Description=Streamlit Service
3
+
4
+[Service]
5
+User=root
6
+WorkingDirectory=/opt/streamlit
7
+ExecStart=poetry run streamlit run streamlit/main.py --server.runOnSave true --ui.hideTopBar true
8
+Restart=always
9
+RestartSec=3
10
11
+[Install]
12
+WantedBy=multi-user.target
0 commit comments