intergram
intergram copied to clipboard
Self hosting. Cannot GET /js/widget.js
I have installed on my server and can send message and receive message via my own bot. I start server.js by npm start
in project directory. But I cannot access /js/widget.js
. I receive this error: Cannot GET /js/widget.js
What do you get in Response Headers
in field X-Powered-By
?
If Express
then you should have file /js/widget.js
on server.
Hi @isnaasharimam , were you able to resolve the issue? If not, can you share some more info about it? Where you able access other assets like the demo html page?
I had the same problem. Somehow npm run build
is not run automatically sometimes. Just do it manually after npm install
and it should generate all needed files.
I have the same issue. npm install
executes npm run build
, but build fails:
npm ERR! Linux 4.9.0-5-amd64
npm ERR! argv "/opt/node/bin/node" "/opt/node/bin/npm" "run" "build"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: `shx mkdir -p dist && shx cp *.html dist && shx cp -r ./media dist && shx cp -r ./css dist && webpack -p`
npm ERR! Exit status 137
npm ERR!
npm ERR! Failed at the [email protected] build script 'shx mkdir -p dist && shx cp *.html dist && shx cp -r ./media dist && shx cp -r ./css dist && webpack -p'.
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 intergram package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! shx mkdir -p dist && shx cp *.html dist && shx cp -r ./media dist && shx cp -r ./css dist && webpack -p
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs intergram
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls intergram
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /srv/app/npm-debug.log
SAME ERROR HERE :(