Skip to content

Commit

Permalink
Add secrets.toml guide #4
Browse files Browse the repository at this point in the history
  • Loading branch information
fedebotu authored Sep 12, 2023
1 parent 1a1f609 commit add7ff8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ You can also run the script to book a ticket directly:
python reserve.py [OPTIONS]
```

### Secrets and email API connection
The app connects to a email account API (specifically, Google), which is private. If you want to deploy the app by yourself, you may encounter the following:
```bash
FileNotFoundError: No secrets files found. Valid paths for a secrets.toml file are: C:\Users\nyancat.streamlit\secrets.toml,
```
You may follow [this guide](https://docs.streamlit.io/streamlit-community-cloud/deploy-your-app/secrets-management) for managing your own `secrets.toml` file. Moreover, if you do not use Gmail, you should modify the `email_notify` function, particularly at [this line](https://github.com/fedebotu/k-trains/blob/1a1f609600f870f09e3ef8fe4e692cc082fdb3cc/ktrains/notify.py#L49C1-L50C1).


## Acknowledgements
Expand Down

0 comments on commit add7ff8

Please sign in to comment.