0
我有一個nodemon在OSX上裝入卷的docker-container中運行。 Nodemon正在接收文件更改,但它不會重新啓動服務器。Nodemon不會重新啓動
輸出:
Creating piclet_web_1...
Attaching to piclet_web_1
web_1 | 7 Sep 13:37:19 - [nodemon] v1.4.1
web_1 | 7 Sep 13:37:19 - [nodemon] to restart at any time, enter `rs`
web_1 | 7 Sep 13:37:19 - [nodemon] watching: *.*
web_1 | 7 Sep 13:37:19 - [nodemon] starting node ./index.js
web_1 | restify listening at http://[::]:80 //normal output of started node-app
//file-change, which gets detected
web_1 | 7 Sep 13:37:30 - [nodemon] restarting due to changes...
//no output of restarted server
Dockerfile:
FROM node:0.12.7-wheezy
EXPOSE 80
RUN npm install nodemon -g
ADD app /app
WORKDIR app
RUN npm install
泊塢窗,compose.yml
web:
build: .
ports:
- "80:80"
volumes:
- ./app/lib:/app/lib
links:
- db
command: "nodemon -L ./index.js"
db:
image: mongo:3.1.7
您是否可以爲應用程序和'docker-compose.yml'提供一些'Dockerfile'的環境,以便人們可以測試問題?我相信你也讀過https://github.com/remy/nodemon/issues/419? –
我編輯了這個問題。我確實已經閱讀過這個問題,但它指的是沒有檢測到更改的問題,我的問題是檢測到更改,但節點應用程序未重新啓動(控制檯和舊版本上沒有啓動 - 輸出仍然可用)。 –