diff --git a/Dockerfile.local b/Dockerfile.local index 43286eba..973e7b53 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -19,5 +19,8 @@ RUN mkdir -p /usr/local/apache2/logs/ssl_mutex ENV NODE_ENV=development WORKDIR /app +RUN mkdir -p logs +COPY . . +RUN npm i COPY supervisord-local.conf /etc/supervisor/conf.d/supervisord.conf CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"] diff --git a/supervisord-local.conf b/supervisord-local.conf index 9e51613c..53fa14bf 100644 --- a/supervisord-local.conf +++ b/supervisord-local.conf @@ -4,10 +4,12 @@ nodaemon=true [program:httpd] command=httpd-foreground -[program:npm-install] -command=npm install @rollup/rollup-linux-arm64-musl --save-optional -directory=/app - [program:npm] command=npm run dev -directory=/app \ No newline at end of file +directory=/app +stdout_logfile=./logs/stdout.log +stderr_logfile=./logs/stderr.log +stdout_logfile_maxbytes=1MB +stderr_logfile_maxbytes=1MB +redirect_stderr=true +stdout_events_enabled=true \ No newline at end of file