born2net / Angular-kitchen-sink

:rocket: Angular - learn by example
http://ng.javascriptninja.io
755 stars 146 forks source link

gulp production #31

Closed ChhorvornBradley closed 7 years ago

ChhorvornBradley commented 7 years ago

I believe I may be missing something simple, everything is working Except when I try to do the production build.

I have followed all directions on the md

so I am on a win7 box and deploying to IIS (I have tries AWS as well in Docker container to no avail -- both give me the same result)

  1. looking at the dist folder==> there is no assets directory, which I believe is causing a lot of the headache (it is, however, inside /public/assets/)

  2. going to App.html gives me a basic html page (toggle navigation button, then two links that do nothing) Console shows this (which leads to my believe that assets is going in the wrong place, but even pushing it to root has no effect

 Failed to load resource: the server responded with a status of 404 (Not Found)
 http://**/assets/us.png Failed to load resource: the server responded with a status of 404 (Not Found)
 http://**.elasticbeanstalk.com/assets/preload5.gif Failed to load resource: the server responded with a status of 404 (Not Found)
  1. if I go to /public/ I see the below in the console. (it starts to work but fails and never goes past the loading screen)
    system.src.js:1051 GET http://localhost:801/jspm_packages/github/systemjs/plugin-text@0.0.9.json 404 (Not Found)G @ system.src.js:1051(anonymous function) @ system.src.js:1778(anonymous function) @ system.src.js:1777(anonymous function) @ system.src.js:2806(anonymous function) @ system.src.js:3384(anonymous function) @ system.src.js:3707(anonymous function) @ system.src.js:4099(anonymous function) @ system.src.js:4562(anonymous function) @ system.src.js:4831(anonymous function) @ system.src.js:407
    (index):46 Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:801/jspm_packages/github/systemjs/plugin-text@0.0.9.json(…) "error system.js Error: (SystemJS) XHR error (404 Not Found) loading http://localhost:801/jspm_packages/github/systemjs/plugin-text@0.0.9.json
    Error: XHR error (404 Not Found) loading http://localhost:801/jspm_packages/github/systemjs/plugin-text@0.0.9.json
    Error loading http://localhost:801/jspm_packages/github/systemjs/plugin-text@0.0.9.json
    Error loading http://localhost:801/src/App.js"(anonymous function) @ (index):46
    :801/src/styles/fonts/Raleway.woff2:1 GET http://localhost:801/src/styles/fonts/Raleway.woff2 

I have followed these directions from the MD

git clone https://github.com/born2net/Angular-kitchen-sink.git
cd Angular-kitchen-sink
npm install -g jspm@beta
npm install -g gulp
npm install
npm install typescript
npm install chokidar-socket-emitter --save-dev
npm install http-server --save-dev
jspm install systemjs-hot-reloader --dev

gulp development & npm run devserver
works like a champ

gulp production
(removed "x_clear_remote",
"x_rsync",
"x_rsync") --> just doing a manual deployment out of /dist/ right now

I love the samples, but my main issue right now is getting a reliable build/bundling tool for NG2 and I keep stumbling! Hope my noob issues are easy for you to resolve.

born2net commented 7 years ago

no longer supported as now powered by angular-cli