Closed JhumanJ closed 7 years ago
Hi,
Could you try node ./lib/server
for your production run ?
Thanks for your answer @animesh10 !
So running node ./lib/server
gave me this error:
`module.js:472 throw err; ^
Error: Cannot find module '/home/team35/prototype-2/lib/server' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:423:7) at startup (bootstrap_node.js:147:9) at bootstrap_node.js:538:3 `
I tried to run node server, which works, but i have the exact same problem: assets and generated assets (css and js) url are local...
Thanks!
The gulp build
should generate a lib
folder which contains the server, which should be found when running in production environments. If you need to configure the app for particular CDN's you can follow the instructions here. Meanwhile, let me try and setup electrode on Azure.
This is what gulp build gives me exactly:
`Just FYI: There's a new src/lib mode that doesn't need babel-register. [13:14:32] Using gulpfile ~/prototype-2/gulpfile.js [13:14:32] Starting 'build'... [13:14:32] Starting 'build-dist'... [13:14:32] Starting '.clean.dist'... [13:14:32] Finished '.clean.dist' after 6.43 ms [13:14:32] Starting '.clean.dll'... [13:14:32] Finished '.clean.dll' after 1.28 ms [13:14:32] Starting 'build-dist-dll'... Just FYI: There's a new src/lib mode that doesn't need babel-register. Just FYI: Entry point configuration is not found, using default entry point... - optional module not found; Path "/home/team35/prototype-2/client/entry.config.js" isomorphic-loader webpack plugin: removed existing config file Just FYI: optional module not found; Path "/home/team35/prototype-2/config/default.json"
webpack compile: .......
optimize chunk assets: ..Total precache size is about 0 B for 0 resources.
.
Hash: 8d39613b91a847faf125
Version: webpack 1.14.0
Time: 12457ms
Asset Size Chunks Chunk Names
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-192x192.png 28.8 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-57x57.png 3.55 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-72x72.png 4.92 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-76x76.png 5.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-114x114.png 10.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-120x120.png 11.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-144x144.png 15.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-152x152.png 16.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-167x167.png 19.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-180x180.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-precomposed.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-16x16.png 596 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-32x32.png 1.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-230x230.png 38.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon.ico 33.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-36x36.png 1.91 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-48x48.png 2.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-72x72.png 4.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-144x144.png 18.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-60x60.png 3.81 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-256x256.png 45.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-384x384.png 87.2 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-512x512.png 138 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-320x460.png 54.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x920.png 158 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x1096.png 159 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-748x1024.png 193 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-750x1294.png 201 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-768x1004.png 207 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1182x2208.png 239 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1242x2148.png 425 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1536x2008.png 577 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1496x2048.png 540 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_60x60.png 5.34 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_128x128.png 16.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_512x512.png 133 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.json 1.23 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.webapp 254 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/.cache 7.55 kB [emitted]
../server/iconstats.json 7.43 kB [emitted]
../../dll/server/stats.dll.json 6.9 kB [emitted]
../../dll/isomorphic-assets.dll.json 35 bytes [emitted]
WARNING in sw-prechache-webpack-plugin filepath: You are using a custom path for your service worker, this may prevent the service worker from working correctly if it is not available in the same path as your application.
Child favicons-webpack-plugin for "../server/iconstats.json":
Asset Size Chunks Chunk Names
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-144x144.png 18.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-57x57.png 3.55 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-72x72.png 4.92 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-76x76.png 5.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-114x114.png 10.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-120x120.png 11.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-144x144.png 15.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-152x152.png 16.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-167x167.png 19.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-180x180.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-precomposed.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-16x16.png 596 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-32x32.png 1.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-230x230.png 38.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon.ico 33.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-36x36.png 1.91 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-48x48.png 2.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-72x72.png 4.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-60x60.png 3.81 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-192x192.png 28.8 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-256x256.png 45.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-384x384.png 87.2 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-512x512.png 138 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-320x460.png 54.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x920.png 158 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x1096.png 159 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-748x1024.png 193 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-750x1294.png 201 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-768x1004.png 207 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1182x2208.png 239 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1242x2148.png 425 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1536x2008.png 577 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1496x2048.png 540 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_60x60.png 5.34 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_128x128.png 16.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_512x512.png 133 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.webapp 254 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/.cache 7.55 kB [emitted]
../server/iconstats.json 7.43 kB 0 [emitted]
webpack compile: ....
1/2 build modules: .........
4/8 build modules: .........
7/14 build modules: .........
10/20 build modules: ............
14/28 build modules: .........................................
34/69 build modules: ....................................................................................................
155/189 build modules: ......
169/203 build modules: ........................
228/279 build modules: .......................................................................................................
optimize chunk assets: ..Caching static resource "dist/isomorphic-assets.json" (533 B)
Caching static resource "dist/js/4806b09c0cbee77c55f0.sw-registration.js" (979 B)
Caching static resource "dist/js/922081590cd89b8ee5716195b06438c6.gif" (53.74 kB)
Caching static resource "dist/js/bundle.4806b09c0cbee77c55f0.js" (376.24 kB)
Caching static resource "dist/js/ce6e8cd268348f271b1a9aabc9d15ff9.png" (23.54 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-144x144.png" (18.59 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-192x192.png" (28.8 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-256x256.png" (45.52 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-36x36.png" (1.91 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-384x384.png" (87.17 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-48x48.png" (2.98 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-512x512.png" (137.77 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-72x72.png" (4.98 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-96x96.png" (9.53 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-114x114.png" (10.65 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-120x120.png" (11.57 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-144x144.png" (15.54 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-152x152.png" (16.67 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-167x167.png" (19.37 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-180x180.png" (21.68 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-57x57.png" (3.55 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-60x60.png" (3.81 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-72x72.png" (4.92 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-76x76.png" (5.63 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-precomposed.png" (21.68 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon.png" (21.68 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1182x2208.png" (238.85 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1242x2148.png" (424.92 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1496x2048.png" (539.94 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1536x2008.png" (577.42 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-320x460.png" (54.29 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x1096.png" (159.21 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x920.png" (158.12 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-748x1024.png" (192.64 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-750x1294.png" (201.24 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-768x1004.png" (206.99 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-16x16.png" (596 B)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-230x230.png" (38.42 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-32x32.png" (1.63 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-96x96.png" (9.53 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon.ico" (33.31 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_128x128.png" (16.35 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_512x512.png" (132.66 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_60x60.png" (5.34 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.json" (1.23 kB)
Caching static resource "dist/js/icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.webapp" (254 B)
Caching static resource "dist/js/style.4806b09c0cbee77c55f0.css" (8.57 kB)
Caching static resource "dist/map/4806b09c0cbee77c55f0.sw-registration.js.map" (5.9 kB)
Caching static resource "dist/map/bundle.4806b09c0cbee77c55f0.js.map" (3.33 MB)
Caching static resource "dist/map/style.4806b09c0cbee77c55f0.css.map" (107 B)
Caching static resource "dist/server/iconstats.json" (7.43 kB)
Caching static resource "dist/server/stats.json" (8.56 kB)
Total precache size is about 7.3 MB for 52 resources.
.
Hash: 4806b09c0cbee77c55f0
Version: webpack 1.14.0
Time: 29009ms
Asset Size Chunks Chunk Names
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-320x460.png 54.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-57x57.png 3.55 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-72x72.png 4.92 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-76x76.png 5.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-114x114.png 10.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-120x120.png 11.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-144x144.png 15.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-152x152.png 16.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-167x167.png 19.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-180x180.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-precomposed.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-16x16.png 596 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-32x32.png 1.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-230x230.png 38.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon.ico 33.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-36x36.png 1.91 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-48x48.png 2.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-72x72.png 4.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-144x144.png 18.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-192x192.png 28.8 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-256x256.png 45.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-384x384.png 87.2 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-512x512.png 138 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-60x60.png 3.81 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x1096.png 159 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x920.png 158 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-748x1024.png 193 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-768x1004.png 207 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-750x1294.png 201 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1182x2208.png 239 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1242x2148.png 425 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1496x2048.png 540 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1536x2008.png 577 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_60x60.png 5.34 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_128x128.png 16.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_512x512.png 133 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.json 1.23 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.webapp 254 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/.cache 7.55 kB [emitted]
../server/iconstats.json 7.43 kB [emitted]
ce6e8cd268348f271b1a9aabc9d15ff9.png 23.5 kB [emitted]
922081590cd89b8ee5716195b06438c6.gif 53.7 kB [emitted]
bundle.4806b09c0cbee77c55f0.js 376 kB 0 [emitted] main
4806b09c0cbee77c55f0.sw-registration.js 979 bytes 1 [emitted] sw-registration
style.4806b09c0cbee77c55f0.css 8.57 kB 0 [emitted] main
../map/bundle.4806b09c0cbee77c55f0.js.map 3.33 MB 0 [emitted] main
../map/style.4806b09c0cbee77c55f0.css.map 107 bytes 0 [emitted] main
../map/4806b09c0cbee77c55f0.sw-registration.js.map 5.9 kB 1 [emitted] sw-registration
../server/stats.json 8.56 kB [emitted]
../isomorphic-assets.json 533 bytes [emitted]
WARNING in sw-prechache-webpack-plugin filepath: You are using a custom path for your service worker, this may prevent the service worker from working correctly if it is not available in the same path as your application.
Child favicons-webpack-plugin for "../server/iconstats.json":
Asset Size Chunks Chunk Names
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-144x144.png 18.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-57x57.png 3.55 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-72x72.png 4.92 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-76x76.png 5.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-114x114.png 10.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-120x120.png 11.6 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-144x144.png 15.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-152x152.png 16.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-167x167.png 19.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-180x180.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-precomposed.png 21.7 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-16x16.png 596 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-32x32.png 1.63 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon-230x230.png 38.4 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/favicon.ico 33.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-36x36.png 1.91 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-48x48.png 2.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-72x72.png 4.98 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-96x96.png 9.53 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-icon-60x60.png 3.81 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-192x192.png 28.8 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-256x256.png 45.5 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-384x384.png 87.2 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/android-chrome-512x512.png 138 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-320x460.png 54.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x1096.png 159 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-640x920.png 158 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-748x1024.png 193 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-768x1004.png 207 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-750x1294.png 201 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1182x2208.png 239 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1242x2148.png 425 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1496x2048.png 540 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/apple-touch-startup-image-1536x2008.png 577 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_60x60.png 5.34 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_128x128.png 16.3 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/firefox_app_512x512.png 133 kB [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/manifest.webapp 254 bytes [emitted]
icons-2b7ac2d4ff91cca5b9c8e742eda58b24/.cache 7.55 kB [emitted]
../server/iconstats.json 7.43 kB 0 [emitted]
Is this related to the warning regarding sw-prechache-webpack-plugin? I'm going to try the webpack instructions you sent me. Thanks again for your help!
I tried to change the config in electrode-react-webpack
to change the host to the my server's ip. So now it works, the url generated in head works, but the files aren't really served there... When starting the server I can see indeed webpack result is served from http://localhost:2992/js/
.
Do you know where I could possibly change that? I can't even access the reporter
Again, thanks a lot!
Any news?
webpack-dev-server should not run in production.
You can use the https://github.com/electrode-io/electrode-static-paths plugin to serve images/js bundle/css.
Hello everyone,
I made an electrode app and deployed it on a linux virtual machine on Azure. It seems to works well, but there is 3 mistakes:
(index):10 GET http://127.0.0.1:2992/js/main.style.css net::ERR_CONNECTION_REFUSED (index):13 GET http://localhost:2992/js/ce6e8cd268348f271b1a9aabc9d15ff9.png net::ERR_CONNECTION_REFUSED (index):14 GET http://127.0.0.1:2992/js/main.bundle.dev.js net::ERR_CONNECTION_REFUSED
What happens is that css, one picture I use and the javascript are not loaded. In fact the url generated is :
If I run the app locally it does work, but it doesn't otherwise. How to change the: http://localhost:2992 url to the one of my virtual machine?
I tried to follow the electrode documentation and run:
gulp build
which works but then when runningnpm run prod
, I obtain this: `prototype-2@1.0.0 prod /home/team35/attempt2/prototype-2Starting standalone server in PROD mode module.js:472 throw err; ^
Error: Cannot find module '/home/team35/attempt2/prototype-2' at Function.Module._resolveFilename (module.js:470:15) at Function.Module._load (module.js:418:25) at Module.runMain (module.js:605:10) at run (bootstrap_node.js:423:7) at startup (bootstrap_node.js:147:9) at bootstrap_node.js:538:3
npm ERR! Linux 4.4.0-71-generic npm ERR! argv "/home/team35/.nvm/versions/node/v7.8.0/bin/node" "/home/team35/.nvm/versions/node/v7.8.0/bin/npm" "run" "prod" npm ERR! node v7.8.0 npm ERR! npm v4.2.0 npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! prototype-2@1.0.0 prod:
echo 'Starting standalone server in PROD mode'; node .
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the prototype-2@1.0.0 prod script 'echo 'Starting standalone server in PROD mode'; node .'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the prototype-2 package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! echo 'Starting standalone server in PROD mode'; node . npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs prototype-2 npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls prototype-2 npm ERR! There is likely additional logging output above.npm ERR! Please include the following file with any support request: npm ERR! /home/team35/.npm/_logs/2017-04-04T21_01_00_852Z-debug.log`
Thank you for your help!