Does nodejitsu support makefile functionality?

69 views Asked by At

For example, if your package.json file contains:

"scripts": {
        "start": "make start", 
        "test": "make test", 
    }

^ Will nodejitsu be able to parse and implement "make start"?

2

There are 2 answers

2
Sly On

Nodejitsu should parse this just fine. Just be sure that you are calling node <app file>.js in your Makefile somewhere, or you change it to make start && node <app file.js>. Nodejitsu uses npm start to start your application, so the Makefile exiting without starting the app would cause the deployment to fail.

0
user2845121 On

If the server.js file contains the static file path of the following directory then only the makefile functionality will work.