calvinl / ng-phonegap

Grunt workflow for building AngularJS applications on PhoneGap.
MIT License
138 stars 28 forks source link

grunt dev boots to port 9001 #9

Closed forrestgrant closed 10 years ago

forrestgrant commented 10 years ago

I know I can change that, or just visit port 9001, but /www/index.html is not mapped correctly either, and cordova.js is not found.

Thoughts?

calvinl commented 10 years ago
  1. I'm making the change to port 9001 rather than 8000, thank you.
  2. You don't need cordova.js if you're testing via Chrome or a webbrowser, cordova.js provides native JS bindings to the device's hardware -- e.g. the accelerometer, GPS, camera, etc. When you're testing in a browser instead of the simulator or a device, this file is not necessary because it won't actually do anything anyway. You can safely ignore the 404 error.
  3. What do you mean "not mapped correctly"? Do you get an error? Make you you've run the commands to install dev dependencies, it sounds like you aren't installing vendor components via bower.

https://github.com/calvinl/ng-phonegap#installing-dev-dependencies

thoughtpalette commented 10 years ago

You get an error when trying to access that URL.

Cannot GET /www/index.html

Should just be /#/