title: Node.js server automatically start
body: <p>I'm new to Node.js but willing to give it a serious try. Coming from PHP things seem a bit confusing as there is no index.php, but a start-script needs to be executed to fire up the server <code>npm start</code>. </p>
  
  <p>How is this done in production? Are there pre-run scripts? What if the server closes for some reason, how do I get it back up automatically without having connection problems for the clients? Will it automatically work for the domain, or does it also mean someone alwasy has to go to domain.com:3000?</p>
  
  <p>Ar am I thinking about this the wrong way?</p>