digital ocean - Node.js / VPS - page doesn't show update -


i've signed digital ocean start learning node.js; i've got working when change this:

res.end('hello world\n'); 

to this:

res.end('something else\n'); 

and click refresh in ff , chrome, both still show 'hello world', if clear history.

however, when click [power cycle] on droplet in digital ocean dashboard, changes shown when refresh ff & chrome.

any ideas why?

do need configure on vps?

thanks in advance...

think found problem...

i using batch script called deploy.bat that:

  • copied js file updates using winscp.exe
  • called restart file plink.exe update server

the restart file had these 2 lines:

sudo /sbin/stop www sudo /sbin/start www 

so trying write updates node server whilst node still running (using ps aux | grep node show running processes) , when tried refresh browsers, updates weren't showing.

if opened putty.exe , ran sudo /sbin/stop www made changes server.js file , ran sudo /sbin/start www, updates showed up.

tl;dr - stop server -> update file(s) -> start server


Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -