Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevo David committed Sep 16, 2024
2 parents 63ebcad + 94ad61a commit 6551b79
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ FROM base AS dist
COPY --from=devcontainer /app/node_modules/ /app/node_modules/
COPY --from=devcontainer /app/dist/ /app/dist/

# Required for prisma
COPY --from=devcontainer /app/libraries/ /app/libraries/

COPY package.json nx.json /app/

VOLUME /config
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
<img alt="Facebook" src="https://postiz.com/svgs/socials/Facebook.svg" width="32">
<img alt="Pinterest" src="https://postiz.com/svgs/socials/Pinterest.svg" width="32">
<img alt="Threads" src="https://postiz.com/svgs/socials/Threads.svg" width="32">
<img alt="X" src="https://postiz.com/svgs/socials/X.svg" width="32">
</div>

<p align="center">
Expand Down
10 changes: 8 additions & 2 deletions apps/backend/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,14 @@ async function bootstrap() {
loadSwagger(app);

const port = process.env.PORT || 3000;
await app.listen(port);
Logger.log(`🚀 Application is running on: http://localhost:${port}`);

try {
await app.listen(port);

Logger.log(`🚀 Backend is running on: http://localhost:${port}`);
} catch (e) {
Logger.error(`Backend failed to start on port ${port}`, e);
}
}

bootstrap();
2 changes: 1 addition & 1 deletion var/docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ if [[ $POSTIZ_APPS == *"backend"* ]]; then
ln -sf /app/supervisord_available_configs/backend.conf /etc/supervisor.d/
fi

/usr/bin/supervisord
/usr/bin/supervisord -c /etc/supervisord.conf
1 change: 1 addition & 0 deletions var/docker/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
user=root

[unix_http_server]
file=/run/supervisord.sock
Expand Down
1 change: 1 addition & 0 deletions var/docker/supervisord/frontend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ autorestart=false
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
environment=PORT=4200

0 comments on commit 6551b79

Please sign in to comment.