Skip to content

refactor!: port env - #9559

Merged
jrasm91 merged 1 commit into
mainfrom
refactor/port-env
May 17, 2024
Merged

jrasm91 merged 1 commit into
mainfrom
refactor/port-env

Conversation

@jrasm91

@jrasm91 jrasm91 commented May 17, 2024

Copy link
Copy Markdown
Member
  • Use IMMICH_PORT and IMMICH_HOST everywhere.

app.useWebSocketAdapter(new WebSocketAdapter(app));

await (host ? app.listen(port, host) : app.listen(port));
await app.listen(0);

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we don't actually use this port, so just pick a random one. (TODO: remove listening entirely in the future)

Comment thread machine-learning/start.sh Outdated
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented May 17, 2024 •

Copy link
Copy Markdown

Deploying immich with  Cloudflare Pages  Cloudflare Pages

Latest commit: 7096145
Status: ✅  Deploy successful!
Preview URL: https://41b3cd1a.immich.pages.dev
Branch Preview URL: https://refactor-port-env.immich.pages.dev

View logs

@jrasm91
jrasm91 force-pushed the refactor/port-env branch from 6abf0ad to 7096145 Compare May 17, 2024 16:29
@jrasm91
jrasm91 dismissed mertalev’s stale review May 17, 2024 16:36

Host is first now

@jrasm91
jrasm91 merged commit d614188 into main May 17, 2024
@jrasm91
jrasm91 deleted the refactor/port-env branch May 17, 2024 16:59
yparitcher added a commit to yparitcher/immich that referenced this pull request Apr 16, 2025
per NextJs docs `app.init()` should be used instead of `app.listen()` if the application is not accepting http requests.

Fixes: immich-app#9559
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants