Skip to content
Permalink
Browse files

Update README.md

How to deal with $'\r': command not found
  • Loading branch information...
StephanThierry committed Jan 29, 2019
1 parent 1b09bf9 commit 90c6803b9a52eeff4dfed5c45f9237635733194e
Showing with 3 additions and 0 deletions.
  1. +3 −0 README.md
@@ -47,6 +47,9 @@ app.listen(3000, () => console.log('Example app listening on port 3000!'))

### Restart the Node.js server after each NAS restart (recommended)
It's possible to access the server manually each time we restart or update, but ideally we would like to be able to restart and update and have our Node server start up along side everything else.

**Notice!** When using a Windows based editor like VS Code - make sure to check that all script files are saved in Linux (LF) format and NOT in Windows (CRLF) format. In VS Code you can view (and change) the line-end format by clicking the "CRLF" icon in the lower right corner of the editor. If you save scripts in CRLF format you could get the error: ```“$'\r': command not found”``` meaning Linux does not know that to do with the CR (aka. \r) char at the end of each line.

1. Create a file in `/volume1/server` called ```nodeservercontrol.sh``` with the content: (Located in the repo `/scripts`)
```
#!/bin/sh

0 comments on commit 90c6803

Please sign in to comment.
You can’t perform that action at this time.