Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
6551b79483
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
nodaemon=true
|
||||
logfile=/dev/null
|
||||
logfile_maxbytes=0
|
||||
user=root
|
||||
|
||||
[unix_http_server]
|
||||
file=/run/supervisord.sock
|
||||
|
|
|
|||
|
|
@ -6,3 +6,4 @@ autorestart=false
|
|||
redirect_stderr=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
environment=PORT=4200
|
||||
|
|
|
|||
Loading…
Reference in New Issue