Merge remote-tracking branch 'origin/main'

This commit is contained in:
Nevo David 2024-09-16 13:39:31 +07:00
commit 6551b79483
6 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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">

View File

@ -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();

View File

@ -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

View File

@ -2,6 +2,7 @@
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
user=root
[unix_http_server]
file=/run/supervisord.sock

View File

@ -6,3 +6,4 @@ autorestart=false
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
environment=PORT=4200