epicweb-dev / epicweb-dev/node-sqlite-fly-tutorial

When deploying steps/02-docker, fly-proxy can't reach app at port 3000

未关闭
#2 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
TypeScript
星标
70
派生
6
PR 合并指标
30 天内没有已合并 PR

描述

```
$ fly deploy
WARNING The app is not listening on the expected address and will not be reachable by fly-proxy.
You can fix this by configuring your app to listen on the following addresses:
- 0.0.0.0:3000
```
Solution:
In `steps/02-docker/Dockerfile`, add:
```
# set environment variables
...
ENV SERVER_PORT="3000"
```
In `steps/02-docker/app/index.ts`, change:
```
.listen(process.env.PORT...
```
to
```
.listen(process.env.SERVER_PORT...
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。