jamesallardice / generator-restangular

A Yeoman generator for AngularJS apps with RestAngular
18 stars 4 forks source link

How do I serve the app? #2

Closed micahbolen closed 10 years ago

micahbolen commented 10 years ago

I tried grunt serve, but this doesn't appear to be configured.

I also tried just serving the build directory with a simple HTTP server, but am getting the following 404 errors:

GET http://localhost:8080/vendor/lodash/live/lodash.min.js 404 (Not Found) localhost/:12
GET http://localhost:8080/vendor/angular/live/angular.min.js 404 (Not Found) localhost/:13
GET http://localhost:8080/vendor/angular-route/live/angular-route.min.js 404 (Not Found) localhost/:14
GET http://localhost:8080/vendor/restangular/live/restangular.min.js 404 (Not Found) localhost/:15
GET http://localhost:8080/assets/js/app.min.js 404 (Not Found) localhost/:16
micahbolen commented 10 years ago

I made a mistake serving the build directory. I was actually serving from the parent directory which was causing the 404 errors. After I set the HTTP server to serve from build as the root, the errors went away.