particle-iot / spark-server

UNMAINTAINED - An API compatible open source server for interacting with devices speaking the spark-protocol
https://www.particle.io/
GNU Affero General Public License v3.0
441 stars 136 forks source link

spark-server creates new keys in current directory #32

Closed rstaph closed 9 years ago

rstaph commented 9 years ago

If you start the spark server with 'node /path/to/main.js' it will create new server keys in the directory it was called from instead of reading the keys already create in /path/to/

Example: lets say I'm in /home/pi and I do 'node ./spark-server/js/main.js' it ignores the keys it already made in /home/pi/spark-server/js and creates a new set for the server in /home/pi

kennethlimcp commented 9 years ago

@rstaph, if you would like to test the PR i sent in, look in the js --> node_modules --> spark-protocol directory and edit the settings.js file accordingly.

Let me know how it goes ;)

rstaph commented 9 years ago

Works perfectly! Thank you.