title: cannot access a node.js app started via systemd
body: <p>I have a node app that I'm trying to start as a service. The app works fine if I start it from the command line like so: <code>node app.js</code>. In that case the process looks like: <code>edoadmin  5003  4980  0 20:39 pts/0    00:00:00 node app.js</code>, and the app is available from the browser.</p>
  <p>If I create a service and enable it (<code>sudo systemctl enable splitflap.service</code>):</p>
  <pre><code>Description=Splitflap app 
  Documentation=
  After=network.target
  
  [Service]
  Type=simple
  User=edoadmin
  ExecStart=node /home/edoadmin/projects/splitflap/Split-Flap/app.js
  Restart=on-failure
  
  [Install]
  WantedBy=multi-user.target
  
  </code></pre>
  <p>The process looks like:</p>
  <p><code>edoadmin   921     1  0 Jan16 ?        00:00:00 /usr/bin/node /home/edoadmin/projects/splitflap/Split-Flap/app.js</code></p>
  <p>but when I try to access the web app, I get the following error:</p>
  <p><code>Cannot GET /</code> in the browser.</p>