Skip to content

Commit f884ba9

Browse files
authored
Merge pull request #520 from CodeForPhilly/fix_parameters
Update to support `PARAMETERS` env variable
2 parents e5a33a1 + d4eb84e commit f884ba9

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Procfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
web: STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py
1+
web: PARAMETERS=defaults/webapp.cfg STREAMLIT_SERVER_PORT=$PORT streamlit run src/app.py

docs/contributing/app-dev.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ See [Streamlit's Getting Started guide](https://docs.streamlit.io/getting_starte
2424
```bash
2525
pipenv shell
2626
pipenv sync --dev
27-
streamlit run src/app.py
27+
PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
2828
```
2929

3030
### With `conda`
@@ -33,16 +33,15 @@ streamlit run src/app.py
3333
conda env create -f environment.yml
3434
source activate chime
3535
pip install streamlit
36-
streamlit run src/app.py
36+
PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
3737
```
3838

3939
### Choosing a Different Port
4040

4141
If you need to run the application on a different port than the default (8000), you can export a variable in your shell session to override it with any port number of your choice before running:
4242

4343
```bash
44-
export STREAMLIT_SERVER_PORT=1234
45-
streamlit run src/app.py
44+
STREAMLIT_SERVER_PORT=1234 PARAMETERS=defaults/webapp.cfg streamlit run src/app.py
4645
```
4746

4847
## Project Layout

0 commit comments

Comments
 (0)