永远启动automatic.js错误

时间:2016-03-25 20:03:07

标签: node.js git screen openshift forever

所以我想让应用程序在openshift上运行

我做了一个应用程序并添加了bitbucket url (https://bitbucket.org/srabouin/backpack.tf-automatic

用于销售游戏物品

所以我打开putty并执行:cd app-root / runtime / repo / 然后我输入:node automatic.js 然后它开始,但当我关闭腻子时,应用程序也关闭...

它不适用于openshift,所以我看到maby你需要编辑package.json文件或其他东西。

1)我想知道要改变什么,或者你是否可以为我改变它

2)我现在使用filezilla编辑文件,我认为它的工作

我试图这样做https://blog.openshift.com/run-your-nodejs-projects-on-openshift-in-two-simple-steps/

有人可以永远帮助我吗? 我做了:npm永远安装 然后:永远启动automatic.js

    [trading-kurryworst003.rhcloud.com repo]\> forever start automatic.js
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: automatic.js
fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open '/var/lib/openshift/56d88d2e0c1e661d250000a9/.forever/_pTz.log'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.forever.startDaemon (/var/lib/openshift/56d88d2e0c1e661d250000a9/io-js/bin/iojs/lib/node_modules/forever/lib/forever.js:460:14)
    at /var/lib/openshift/56d88d2e0c1e661d250000a9/io-js/bin/iojs/lib/node_modules/forever/lib/forever/cli.js:315:15
    at /var/lib/openshift/56d88d2e0c1e661d250000a9/io-js/bin/iojs/lib/node_modules/forever/lib/forever/cli.js:161:5
    at /var/lib/openshift/56d88d2e0c1e661d250000a9/io-js/bin/iojs/lib/node_modules/forever/lib/forever.js:412:11
    at FSReqWrap.oncomplete (fs.js:82:15)
[trading-kurryworst003.rhcloud.com repo]\>

如果我没有cd到app-root / runtime / repo

我使用forever start automatic.js我得到:

[trading-kurryworst003.rhcloud.com 56d88d2e0c1e661d250000a9]\> forever start automatic.js
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: automatic.js
error:   Cannot start forever
error:   script /var/lib/openshift/56d88d2e0c1e661d250000a9/automatic.js does not exist.

也试过屏幕但不起作用

0 个答案:

没有答案