bustoutfunk / wellsense-web

Boilerplate for MERN Stack
0 stars 0 forks source link

Periodic App Crash #10

Open bustoutfunk opened 8 years ago

bustoutfunk commented 8 years ago

Every few times I run gulp I get an app crash (and it reports that the port is already in use):

amahpour@ubuntu-wellsense:/var/www/wellsense-web$ gulp
[17:31:02] Using gulpfile /var/www/wellsense-web/gulpfile.js
[17:31:02] Starting 'webpack-watch'...
[17:31:02] Starting 'assets-watch'...
[17:31:02] Finished 'assets-watch' after 19 ms
[17:31:02] Starting 'dev-env'...
[17:31:02] Finished 'dev-env' after 54 μs
[17:31:02] Starting 'run'...
[17:31:02] Finished 'run' after 2.44 ms
[17:31:02] [nodemon] 1.10.2
[17:31:02] [nodemon] to restart at any time, enter `rs`
[17:31:02] [nodemon] watching: *.*
[17:31:02] [nodemon] starting `node ./bin/www`
Port 3000 is already in use
[17:31:05] [nodemon] app crashed - waiting for file changes before starting...
[17:31:09] Version: webpack 1.13.2
    Asset     Size  Chunks             Chunk Names
bundle.js  2.04 MB       0  [emitted]  main
[17:31:09] webpack is watching for changes
bustoutfunk commented 8 years ago

I rebooted the machine and got this:

amahpour@ubuntu-wellsense:/var/www/wellsense-web$ gulp
[17:40:40] Using gulpfile /var/www/wellsense-web/gulpfile.js
[17:40:40] Starting 'webpack-watch'...
[17:40:40] Starting 'assets-watch'...
[17:40:40] Finished 'assets-watch' after 18 ms
[17:40:40] Starting 'dev-env'...
[17:40:40] Finished 'dev-env' after 54 μs
[17:40:40] Starting 'run'...
[17:40:40] Finished 'run' after 2.3 ms
[17:40:40] [nodemon] 1.10.2
[17:40:40] [nodemon] to restart at any time, enter `rs`
[17:40:40] [nodemon] watching: *.*
[17:40:40] [nodemon] starting `node ./bin/www`
GET / 304 112.336 ms - -
GET /css/style.css 304 29.592 ms - -
Killed
amahpour@ubuntu-wellsense:/var/www/wellsense-web$ GET /js/bundle.js 200 272.137 ms - 2041276
webpack built 3b48d08512cc18346373 in 13965ms
GET /favicon.ico 304 6.416 ms - -
GET /favicon.ico 304 1.800 ms - -

amahpour@ubuntu-wellsense:/var/www/wellsense-web$ GET / 304 5.608 ms - -
GET /__webpack_hmr 200 1.788 ms - -
GET /css/style.css 304 3.192 ms - -
GET /js/bundle.js 304 2.727 ms - -
GET /favicon.ico 200 1.602 ms - 319

amahpour@ubuntu-wellsense:/var/www/wellsense-web$

If you'll notice the message says "Killed" but it's still running in the background. Meaning that if I hit enter I get an empty command like but the node process is still running and serving webpages.