| Summary: | Server can't find orion.conf | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Node | Assignee: | Project Inbox <orion.server-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | ken_walker |
| Version: | 2.0 | ||
| Target Milestone: | 2.0 RC1 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
A look at the code suggests that the server is trying to open './orion.conf'. This is interpreted relative to the CWD, so it will not find the default orion.conf when your CWD is not the server directory. It should be doing something like this instead: path.join(__dirname, 'orion.conf') |
When you try to launch the server from a different working directory than the one the server is installed in, the orion.conf file cannot be found: > kwalker$ node /Users/kwalker/node_modules/orion/server.js -w /Users/kwalker/Desktop/Workspace > > /Users/kwalker/node_modules/orion/lib/args.js:135 > if (err) { throw err; } > ^ > Error: ENOENT, open './orion.conf'