You are viewing a single comment's thread from:

RE: Steemit API資料を試してみる

in Steem Japan2 years ago

Hi yasu!

npm run dev-server starts in debug mode; it's useful while developing your application as it will provide additional debug info.

npm run start is for running in production mode; debugging functionality is turned off in order to maximise performance.

In production mode, webpack bundles together all the scripts for efficiency, instead of keeping them separate.

http://conoha:3000/ will not work in development mode, because the application is not listening on the public IP.

However, in production mode, the file index.js gets run. You can see the line app.listen(3000);. This is equivalent to app.listen(3000, '0.0.0.0'); which means that it will listen on ALL IP addresses.

Hope this helps! 🙂

Sort:  

Thank you very much for your detailed explanation. And I understood that 0.0.0.0 is a special IP address.

Coin Marketplace

STEEM 0.20
TRX 0.14
JST 0.029
BTC 66603.07
ETH 3335.94
USDT 1.00
SBD 2.70