Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: differentiate dev port (#606)

authored by

Maximilian Kaske and committed by
GitHub
fa43864d 58e9a6f5

+23 -9
+13 -3
README.md
··· 74 74 4. Follow the steps to run your sqlite database locally inside of 75 75 [README.md](https://github.com/openstatusHQ/openstatus/blob/main/packages/db/README.md) 76 76 77 - 5. Start the development server 77 + 5. Start the development with the below command 78 78 79 79 ```sh 80 80 pnpm dev 81 81 ``` 82 82 83 - 6. Open [http://localhost:3000](http://localhost:3000) with your browser to see 84 - the result. 83 + It will: 84 + 85 + - run the web app on port `3000` 86 + - run the api server on port `3001` 87 + - run the docs on port `3002` 88 + 89 + 6. See the results: 90 + 91 + - open [http://localhost:3000](http://localhost:3000) for the web app 92 + - open [http://localhost:3001/ping](http://localhost:3001/ping) for the api 93 + server health check 94 + - open [http://localhost:3002](http://localhost:3002) for the docs 85 95 86 96 For [clerk](https://clerk.com), you will need to create a webhook endpoint. To 87 97 access the link, you can use tunneling tools like
+1 -1
apps/docs/package.json
··· 3 3 "version": "0.0.0", 4 4 "private": true, 5 5 "scripts": { 6 - "dev": "pnpm dlx mintlify@latest dev", 6 + "dev": "pnpm dlx mintlify@latest dev --port 3002", 7 7 "verify": "pnpm dlx mintlify@latest broken-links" 8 8 }, 9 9 "keywords": [],
+9 -5
apps/server/src/index.ts
··· 27 27 app.route("/v1", api); 28 28 29 29 app.route("/", checkerRoute); 30 - if (process.env.NODE_ENV === "development") { 31 - app.showRoutes(); 32 - } 33 30 34 - console.log("Starting server on port 3000"); 31 + const isDev = process.env.NODE_ENV === "development"; 32 + const port = isDev ? 3001 : 3000; 35 33 36 - export default app; 34 + if (isDev) app.showRoutes(); 35 + 36 + console.log(`Starting server on port ${port}`); 37 + 38 + const server = { port, fetch: app.fetch }; 39 + 40 + export default server;