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

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

Đang mở
#2 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
70
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

```
$ 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...
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.