Wildhoney / EmberSockets

Socket.io (WebSockets) integrated with Ember.js' observer pattern.
http://ember-sockets.herokuapp.com/
MIT License
136 stars 22 forks source link

change referred ember-sockets.js to right src #30

Closed feitian124 closed 10 years ago

feitian124 commented 10 years ago

example is not working as the js didn't exist in src js/vendor/ember-sockets/ember-sockets.js, fixed by point to the one locate in parent folder.

Wildhoney commented 10 years ago

With this way the Node.js instance wouldn't have access to the dist folder, because it's outside of the root directory. For the ember-sockets.js file to be in the vendor directory you'll need to run grunt build.

You can then initiate the Node server with node example/server.js, and then navigate to localhost:3502.

Please let me know if this works for you :thumbsup: I should also update the README to clarify this process.

feitian124 commented 10 years ago

I tried, my change works, the dist folder is in project root folder. As grunt build could put the file there, it is better, just need some guide in README. thank you.

Wildhoney commented 10 years ago

Thanks for raising the issue! :beers:

I've updated the README to add the steps: https://github.com/Wildhoney/EmberSockets/commit/d3ae582b23dceec1f5c3ca4f55d9c1cb7a2341fe