You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/chem-sync-local-flask/README.md
+31-35Lines changed: 31 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ This app is optimized as a minimal local development experience using [Docker](h
16
16
> ⚠️ **Development Only**: This example is not meant to be copied into production as-is. There are additional deployment, scale, and security concerns that should be addressed before deploying an app based on this example to production.
17
17
18
18
It relies on a few other tools that will be installed for you within Docker containers:
19
-
*[Cloudflare-tunnel](https://www.cloudflare.com/products/tunnel/) - expose a public webhook URL and forward the results locally. ⚠️ *Not for production or real data!*
19
+
*[ngrok](https://ngrok.com/) - expose a public webhook URL and forward the results locally. ⚠️ *Not for production or real data!*
20
20
*[Flask](https://flask.palletsprojects.com/) - A simple Python web application framework
21
21
22
22
## Getting Started
@@ -33,6 +33,23 @@ Windows example:
33
33
echo.> .client_secret
34
34
```
35
35
36
+
Create an `.env` file for Docker environment variables. *nix example:
37
+
38
+
```bash
39
+
touch .env
40
+
```
41
+
42
+
Windows example:
43
+
44
+
```cmd
45
+
echo.> .env
46
+
```
47
+
48
+
Then, add your `ngrok` auth token under the alias `NGROK_AUTHTOKEN` which can be found on [ngrok your-authtoken](https://dashboard.ngrok.com/get-started/your-authtoken) like so:
49
+
````
50
+
NGROK_AUTHTOKEN=<YOUR_AUTH_TOKEN_HERE>
51
+
````
52
+
36
53
Start Docker:
37
54
38
55
```bash
@@ -54,28 +71,18 @@ curl localhost:8000/health
54
71
55
72
If Flask is running, you should see `OK` printed.
56
73
57
-
Be sure to note the URL created for you by `cloudflare-tunnel`. The log line should look something like this:
0 commit comments