์ฃผ์ด์ง ๋๋ ํ ๋ฆฌ์ ๋ชจ๋ ํ์ผ๊ณผ ๋ค๋ฅธ ๋๋ ํ ๋ฆฌ์ ๋จ์ผ ํ์ผ์ ๋ณด๊ณ ์ถ์ต๋๋ค. ์ง์ํ์ง ์๋ ๊ฒ ๊ฐ์ต๋๋ค.
C:\Stimulant\Source\ampm>nodemon --dump --watch . --watch ../ampm-test/WPF-test/
config.json server.js ../ampm-test/WPF-test/config.json
20 Feb 11:33:38 - [nodemon] v1.0.15
20 Feb 11:33:38 - [nodemon] to restart at any time, enter `rs`
20 Feb 11:33:38 - [nodemon] watching: *.* ../ampm-test/WPF-test/config.json
--------------
{ run: false,
system:
{ cwd: 'C:\\Stimulant\\Source\\ampm',
useFind: false,
useWatch: true,
useWatchFile: false },
required: false,
dirs: [ 'C:\\Stimulant\\Source\\ampm' ],
timeout: 1000,
options:
{ scriptPosition: 0,
dump: true,
watch:
[ '.',
'../ampm-test/WPF-test/config.json',
re: /\.|\.\./ampm\-test/WPF\-test/config\.json/ ],
script: 'server.js',
args: [ '../ampm-test/WPF-test/config.json' ],
restartable: 'rs',
ignore:
[ '.git',
'node_modules/**/node_modules',
'view',
'samples',
'logs',
'app',
'content',
re: /\.git|node_modules/.*.*/node_modules|view|samples|logs|app|content/
],
verbose: false,
ext: 'js,json',
execMap: { py: 'python', rb: 'ruby' },
stdin: true,
stdout: true,
execOptions:
{ script: 'server.js',
exec: 'node',
nodeArgs: undefined,
ext: 'js,json',
env: {},
execArgs: [] },
monitor:
[ '*.*',
'../ampm-test/WPF-test/config.json',
'!C:\\Stimulant\\Source\\ampm\\.git/**/*',
'!node_modules/**/node_modules',
'!C:\\Stimulant\\Source\\ampm\\view/**/*',
'!C:\\Stimulant\\Source\\ampm\\samples/**/*',
'!logs',
'!app',
'!content' ] },
load: [Function],
reset: [Function: reset],
lastStarted: 0,
loaded: [ 'C:\\Stimulant\\Source\\ampm\\nodemon.json' ],
command:
{ raw:
{ executable: 'node',
args: [ 'server.js', '../ampm-test/WPF-test/config.json' ] },
string: 'node server.js ../ampm-test/WPF-test/config.json' } }
--------------
OS: win32 x64
node: v0.10.26
nodemon: v1.0.15
cwd: C:\Stimulant\Source\ampm
command: node C:\Users\josh.STIMULANT\AppData\Roaming\npm\node_modules\nodemon\b
in\nodemon.js --dump --watch . --watch ../ampm-test/WPF-test/config.json server.
js ../ampm-test/WPF-test/config.json
--------------
ํ , monitor
์ค์ ์ ์ถ๋ ฅ์ด ์ ๋๋ก ๋ณด์
๋๋ค. ์ด ๋ ์ด์์์ด ์๋ ํ
์คํธ๋ฅผ ๋ง๋ค์ด ์ง์ ํ์ธํ๊ณ ๋๋ฒ๊ทธํด์ผ ํฉ๋๋ค.
๋ ๊ฐ๋จํ ์ฌํ ...
C:\Stimulant\Source\ampm>nodemon server.js --watch ../ampm-test/WPF-test/config.json ../ampm-test/WPF-test/config.json
1 Mar 12:01:33 - [nodemon] v1.0.15
1 Mar 12:01:33 - [nodemon] to restart at any time, enter `rs`
1 Mar 12:01:33 - [nodemon] watching: ../ampm-test/WPF-test/config.json
1 Mar 12:01:33 - [nodemon] starting `node server.js ../ampm-test/WPF-test/config.json`
์ด์ ํ๋์ ํ์ผ๋ง ๋ณด๋ผ๊ณ ๋งํ๊ณ ์์ต๋๋ค. ์ถ๋ ฅ์ ์ฌ๋ฐ๋ฅธ ์์ ์ ์ํํ๋ ๊ฒ์ฒ๋ผ ๋ณด์ด์ง๋ง json ํ์ผ์ด ๋ณ๊ฒฝ๋๋ฉด ์๋ฌด ์ผ๋ ์ผ์ด๋์ง ์์ต๋๋ค.
์ ๋ ๊ฒฝ๋ก๋ฅผ ์ฌ์ฉํ๋๋ผ๋ ํ์ผ์ด ๋ณ๊ฒฝ๋๋ฉด ์๋ฌด ์ผ๋ ์ผ์ด๋์ง ์์ต๋๋ค.
C:\Stimulant\Source\ampm>nodemon server.js --watch C:\Stimulant\Source\ampm-test\WPF-test\config.json ../ampm-test/WPF-test/config.json
1 Mar 12:03:03 - [nodemon] v1.0.15
1 Mar 12:03:03 - [nodemon] to restart at any time, enter `rs`
1 Mar 12:03:03 - [nodemon] watching: C:\Stimulant\Source\ampm-test\WPF-test\config.json
1 Mar 12:03:03 - [nodemon] starting `node server.js ../ampm-test/WPF-test/config.json`
ํ์ฅ์๋ฅผ ์ง์ ํด ๋ณด์ จ์ต๋๊น? #308 ์ฐธ์กฐ.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋ ๊ฐ๋จํ ์ฌํ ...
์ด์ ํ๋์ ํ์ผ๋ง ๋ณด๋ผ๊ณ ๋งํ๊ณ ์์ต๋๋ค. ์ถ๋ ฅ์ ์ฌ๋ฐ๋ฅธ ์์ ์ ์ํํ๋ ๊ฒ์ฒ๋ผ ๋ณด์ด์ง๋ง json ํ์ผ์ด ๋ณ๊ฒฝ๋๋ฉด ์๋ฌด ์ผ๋ ์ผ์ด๋์ง ์์ต๋๋ค.