1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00
node-red/red
Nathan Allen 6fa0d671c0 Fix ENOENT error on first start when no user dir (#1711)
* Fix ENOENT error on first start when no user dir

Write backup using `copySync` and move it below the `fsync` to ensure file is present when backup is made.

* Check for path to exist before attempting backup
2018-05-03 09:40:51 +01:00
..
api Handle cloning a project without package.json 2018-05-02 16:24:58 +01:00
runtime Fix ENOENT error on first start when no user dir (#1711) 2018-05-03 09:40:51 +01:00
red.js When creating 'redserver' for a node, use runtime.server rather than runtime.adminApi.server, and fill runtime.server at startup with the valid http server regardless of adminApi being available. 2017-12-20 16:04:32 +00:00