gns3-web-ui icon indicating copy to clipboard operation
gns3-web-ui copied to clipboard

update script for deploy

Open rajnikantsolarwinds opened this issue 3 years ago • 2 comments

rajnikantsolarwinds avatar Jul 27 '22 09:07 rajnikantsolarwinds

Looks like I still have the problem.

yarn ng build --configuration production
cd dist
npx http-server

grossmj avatar Jul 27 '22 21:07 grossmj

Default values for --build-optimizer and --aot are true: https://angular.io/cli/build however I added them explicitly with still the same result: I get a blank page unless I set --built-optimizer to false

$ yarn ng build --source-map=false --build-optimizer=true --aot=true --configuration=production
yarn run v1.22.19
$ ng build --source-map=false --build-optimizer=true --aot=true --configuration=production
✔ Browser application bundle generation complete.
✔ Copying assets complete.
⠋ Generating index html...1 rules skipped due to selector errors:
  legend+* -> Cannot read properties of undefined (reading 'type')
✔ Index html generation complete.

Initial Chunk Files           | Names                                       |  Raw Size | Estimated Transfer Size
main.ed2a26de59441791.js      | main                                        |   3.55 MB |               610.61 kB
styles.1035ff77d963da68.css   | styles                                      | 372.99 kB |                27.86 kB
polyfills.9fee123abd7f0c0c.js | polyfills                                   |  37.28 kB |                11.68 kB
runtime.337b1c9aa18f212b.js   | runtime                                     |   3.32 kB |                 1.42 kB

                              | Initial Total                               |   3.95 MB |               651.56 kB

Lazy Chunk Files              | Names                                       |  Raw Size | Estimated Transfer Size
465.236319d2dbba2475.js       | topology-summary-topology-summary-component |  13.39 kB |                 3.27 kB

Build at: 2022-08-03T08:55:06.032Z - Hash: 2708240a86d8af13 - Time: 32168ms
Done in 34.70s.

$ cd dist/ 
$ npx http-server
Starting up http-server, serving ./

http-server version: 14.1.1

http-server settings: 
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

Available on:
  http://127.0.0.1:8080
  http://192.168.0.12:8080
  http://172.16.252.1:8080
  http://192.168.2.1:8080
Hit CTRL-C to stop the server

[2022-08-03T08:56:16.080Z]  "GET /" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"
(node:346555) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
[2022-08-03T08:56:16.140Z]  "GET /runtime.337b1c9aa18f212b.js" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"
[2022-08-03T08:56:16.142Z]  "GET /main.ed2a26de59441791.js" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"
[2022-08-03T08:56:16.142Z]  "GET /polyfills.9fee123abd7f0c0c.js" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"
[2022-08-03T08:56:16.173Z]  "GET /styles.1035ff77d963da68.css" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"
[2022-08-03T08:56:16.687Z]  "GET /assets/favicon.ico" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"
[2022-08-03T08:56:18.882Z]  "GET /" "Mozilla/5.0 (Windows NT 10.0; rv:100.0) Gecko/20100101 Firefox/100.0"

grossmj avatar Aug 03 '22 09:08 grossmj