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 件 担当者 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 を短くまとめたダイジェスト。