默认情况下,在运行时,Remix.run似乎使用端口3000进行本地开发:
❯ npm run dev
> dev
> concurrently "npm run dev:css" "remix dev"
[0]
[0] > dev:css
[0] > tailwindcss -o ./app/styles/tailwind.css --watch
[0]
[1] Watching Remix app in development mode...
[1] Built in 161ms
[1] Remix App Server started at http://localhost:3000您如何更改它运行的端口?
发布于 2022-01-29 16:37:18
从v1.1.3 (~2022年1月)开始,本地开发端口是配置,带有PORT环境变量。
示例:
PORT=10000 npm run dev给出
> dev
> concurrently "npm run dev:css" "remix dev"
[0]
[0] > dev:css
[0] > tailwindcss -o ./app/styles/tailwind.css --watch
[0]
[1] Watching Remix app in development mode...
[1] Built in 162ms
[1] Remix App Server started at http://localhost:10000https://stackoverflow.com/questions/70907527
复制相似问题