whitphx HF staff commited on
Commit
aa173bd
1 Parent(s): e94644d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +33 -0
README.md CHANGED
@@ -1 +1,34 @@
1
  # streamlit-webrtc-example
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  # streamlit-webrtc-example
2
+
3
+
4
+ ## Manual deployment to heroku
5
+ ### Prerequisites
6
+ 1. Set up `heroku` command.
7
+
8
+ 2. Add [`heroku-buildpack-apt`](https://github.com/heroku/heroku-buildpack-apt) to buildpacks.
9
+ ```shell
10
+ $ heroku buildpacks:add --index 1 heroku-community/apt
11
+ ```
12
+
13
+ See
14
+ https://help.heroku.com/IYRYW6VB/how-do-i-install-additional-software-packages-that-my-application-requires
15
+ and
16
+ https://github.com/heroku/heroku-buildpack-apt
17
+ for details.
18
+
19
+ ### Deploy
20
+ #### If dependencies have changed, update `requirements.txt`
21
+ 1. Generate `requirements.txt`.
22
+ ```shell
23
+ $ pipreqs . --force
24
+ ```
25
+
26
+ 2. Commit it.
27
+ ```shell
28
+ $ git add requirements.txt
29
+ $ git commit -m "requirements.txt"
30
+ ```
31
+ #### Deploy the current branch to Heroku
32
+ ```shell
33
+ $ git push heroku <current-branch>:main
34
+ ```