Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy to Web Server #26

Open
hopeswiller opened this issue May 22, 2020 · 7 comments
Open

Deploy to Web Server #26

hopeswiller opened this issue May 22, 2020 · 7 comments

Comments

@hopeswiller
Copy link

From the README file, it states to copy the content of dist folder to your webserver.

But there seems to be no dist folder

@andrealeo83
Copy link
Contributor

you have before to build the angular project with : https://github.com/chat21/chat21-web-widget#build-for-production

@hopeswiller
Copy link
Author

Thanks

@hopeswiller
Copy link
Author

And also the build for production fails to compile the "vendor.bundle.js" file which is required
Please help

@andrealeo83
Copy link
Contributor

please paste the error

@hopeswiller
Copy link
Author

So i use the command below to build for production and i get only four bundles rendered. After its been deployed on the webserver, it provides an error indicating that vendor.bundle.js isnt available which of course it wasn't rendered
$ ng build --prod --base-href --output-hashing none

Your global Angular CLI version (9.1.0) is greater than your local
version (1.7.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Date: 2020-05-31T20:54:33.548Z
Hash: e4e7830ce68f84576b0e
Time: 72393ms
chunk {0} main.bundle.js (main) 2.07 MB [initial] [rendered]
chunk {1} polyfills.bundle.js (polyfills) 173 kB [initial] [rendered]
chunk {2} styles.bundle.css (styles) 0 bytes [initial] [rendered]
chunk {3} inline.bundle.js (inline) 796 bytes [entry] [rendered]

also i use the command below to build for local development and i get only five bundles rendered

$ ng build

Your global Angular CLI version (9.1.0) is greater than your local
version (1.7.4). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".
Date: 2020-05-31T20:56:26.317Z
Hash: 8e3ae240bb37cca0b2e5
Time: 19099ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 3.89 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 848 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 549 kB [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 14.7 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 6.87 MB [initial] [rendered]

@hopeswiller
Copy link
Author

This is the error after i integrate the chat widget into my page

image

@hopeswiller
Copy link
Author

No help here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants