A
A
Alexey Yarkov2016-05-25 21:02:40
linux
Alexey Yarkov, 2016-05-25 21:02:40

How to define OS in package.json?

How to define OS in package.json?
I run the application on VDS like this:
$ pm2 start $PWD/server/app.js --watch $PWD
But I work at home on WINDOWS 7. And in package.json we have an entry:

"scripts": {
    "start": "pm2 start ./server/app.js --watch ."
}

I can't use $PWD on Windows, can I? Is there a way to specify the launch string somehow cross-platform?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2016-05-25
@yarkov

Why does package.json actually do this (launching the application) at all?
There are other software and/or hands for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question