Răsfoiți Sursa

use --no-silent for logs

Girish Ramakrishnan 9 ani în urmă
părinte
comite
2266203c72
2 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 0 1
      Dockerfile
  2. 2 2
      start.sh

+ 0 - 1
Dockerfile

@@ -7,7 +7,6 @@ RUN mkdir -p /app/code
 WORKDIR /app/code
 RUN curl -L https://github.com/NodeBB/NodeBB/archive/v1.0.3.tar.gz | tar -xz --strip-components 1 -f -
 RUN npm install --production
-RUN rm -rf logs && ln -s /run/nodebb/logs /app/code/logs
 
 # these links will become valid after setup is run
 RUN rm -rf /app/code/config.json && ln -sf /run/nodebb/config.json /app/code/config.json

+ 2 - 2
start.sh

@@ -3,7 +3,7 @@
 set -eu
 
 echo "Creating directories"
-mkdir -p /app/data/public/uploads /run/nodebb/logs
+mkdir -p /app/data/public/uploads /run/nodebb
 chown -R cloudron:cloudron /app/data /run/nodebb
 
 # this will generate the config.json
@@ -27,4 +27,4 @@ echo "Creating config.json"
 node /app/code/app --setup "${setup}"
 
 echo "Starting nodebb"
-/usr/local/bin/gosu cloudron:cloudron node /app/code/loader.js --no-daemon
+/usr/local/bin/gosu cloudron:cloudron node /app/code/loader.js --no-daemon --no-silent