From d4ae091dddb67b5f90ad3ccb8501412a61b0205c Mon Sep 17 00:00:00 2001 From: Mark Backman Date: Mon, 7 Apr 2025 11:02:09 -0400 Subject: [PATCH] Update port in FastAPI README, add run steps to nextjs README --- .../fastapi-webhook-server/README.md | 6 +++--- .../nextjs-webhook-server/README.md | 18 ++++++++++++++---- .../nextjs-webhook-server/env.local.example | 6 +++--- 3 files changed, 20 insertions(+), 10 deletions(-) diff --git a/examples/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/README.md b/examples/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/README.md index 2fa2dc776..77ee54232 100644 --- a/examples/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/README.md +++ b/examples/deployment/pipecat-cloud-daily-pstn-server/fastapi-webhook-server/README.md @@ -38,13 +38,13 @@ Start the server: python server.py ``` -The server will run on `http://localhost:3000` and you can expose it via ngrok for testing: +The server will run on `http://localhost:7860` and you can expose it via ngrok for testing: ```bash -`ngrok http 3000` +`ngrok http 7860` ``` -> Tip: Use a subdomain for a consistent URL (e.g. `ngrok http -subdomain=mydomain http://localhost:3000`) +> Tip: Use a subdomain for a consistent URL (e.g. `ngrok http -subdomain=mydomain http://localhost:7860`) ## API Endpoints diff --git a/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/README.md b/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/README.md index bbce81a5c..c56e4f7dd 100644 --- a/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/README.md +++ b/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/README.md @@ -42,11 +42,21 @@ Next.js API routes for handling Daily PSTN/SIP Pipecat requests. LOG_LEVEL=info ``` -6. Run the development server: +### Running the server - ```bash - npm run dev - ``` +Run the development server: + +```bash +npm run dev +``` + +The server will run on `http://localhost:7860` and you can expose it via ngrok for testing: + +```bash +`ngrok http 7860` +``` + +> Tip: Use a subdomain for a consistent URL (e.g. `ngrok http -subdomain=mydomain http://localhost:7860`) ## API Endpoints diff --git a/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/env.local.example b/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/env.local.example index 91e1a48b5..916aab13a 100644 --- a/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/env.local.example +++ b/examples/deployment/pipecat-cloud-daily-pstn-server/nextjs-webhook-server/env.local.example @@ -1,4 +1,4 @@ -PINLESS_HMAC_SECRET=your_hmac_secret -PIPECAT_CLOUD_API_KEY=your_daily_api_key AGENT_NAME=my-first-agent -PORT=8000 \ No newline at end of file +PIPECAT_CLOUD_API_KEY=your_daily_api_key +PINLESS_HMAC_SECRET=your_hmac_secret +LOG_LEVEL="info" \ No newline at end of file