node.js does not start via upstart (but does when manually run from command line) -


I have a node. Js is an app that can run successfully from the command line. I want to start using it upstart.

I do not need to define [context arrow] when it hits the first line of my app, which is ..

  Var requirejs = require ('requirejs');   

Looks like exec line from my upstart script

  exec sudo -u pi / usr / local / bin / node / home / [my_app_dir] / Myapp.js & gt; & Gt; /var/log/myapp.log2 & gt; & Amp; 1   

Is the path not being set correctly?

This is more likely to be solved as it solves node_modules Seeing a CD (relevant dir) in the wrong place after which the node myapp & gt; & Gt; ... Instead, it should be able to find all your essential libraries.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -