Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fixed: Hilfe bei node.js
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum
View previous topic :: View next topic  
Author Message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Sat May 09, 2015 10:22 am    Post subject: Fixed: Hilfe bei node.js Reply with quote

Habe mal eine spezielle Frage.

Ich arbeite mich etwas in node.js ein. Um das Javaskript zu starten(weiß sicher jeder hier), dient der Befehl:

Code:
node <Skriptname>


Die Javaskriptdatei wird über ssh mit kate editiert. Ich möchte jetzt erreichen, dass auf dem Server ein Bashskript bei jedem Überschreiben der js - Datei automatisch der node Prozess gekillt und neu gestartet wird. Also sowas:

Code:

killall node
node <js Dateil> &


Wie könnte man das am einfachsten erreichen. Das Problme ist, wie fange ich ab, dass die Datei überschrieben wurde?


Grüße
Martin
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W


Last edited by Erdie on Sat May 09, 2015 12:15 pm; edited 1 time in total
Back to top
View user's profile Send private message
Erdie
Advocate
Advocate


Joined: 20 May 2004
Posts: 2566
Location: Heidelberg - Germany

PostPosted: Sat May 09, 2015 12:14 pm    Post subject: Reply with quote

Hat sich erledigt. "nodemon" macht den job!
_________________
Desktop AMD Ryzen 9 5900X 32GB RAM, Asus GF GTX 1060.
Notebook Tuxedo Pulse 15 Gen1 AMD Ryzen 7 4800H mit Radeon Vega 7
Raspberry Pi 1 + 2 + 3B+ + Zero W
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) Diskussionsforum All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum