chat.freenode.net #tryton log beginning Sat 30 May 2020 12:00:01 AM CEST | ||
-!- Quiquetom(~quique@121.6.133.37.dynamic.jazztel.es) has joined #tryton | 22:09 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 23:36 | |
-!- thaneor(~ldlc6@179.26.239.21) has joined #tryton | 02:30 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 06:59 | |
-!- davemc(~davemc@219-89-203-23.adsl.xtra.co.nz) has joined #tryton | 08:08 | |
-!- davemc_(~davemc@219-89-203-23.adsl.xtra.co.nz) has joined #tryton | 08:13 | |
davemc_ | .. | 08:16 |
---|---|---|
davemc_ | hello Trytonites | 08:16 |
davemc_ | While installing from source, clean new install, on debian 10 | 08:17 |
davemc_ | How do I install the sao web client files? | 08:18 |
davemc_ | tryton-env/sao seems to have some of them | 08:18 |
davemc_ | I've run npm install --production | 08:18 |
davemc_ | like I do have index.html, package.json etc | 08:20 |
davemc_ | but not custom.js custom.css etc | 08:20 |
davemc_ | How are these files generated? | 08:20 |
semarie | custom.js and custom.css are ... custom files :) | 08:20 |
semarie | you could just create empty files if 404 is too ugly | 08:21 |
davemc_ | oh. ok | 08:21 |
davemc_ | how about dist/tryton-sao.min.js | 08:21 |
davemc_ | seems a bit more important | 08:21 |
semarie | not necessary. sao will fallback to dist/tryton-sao.js if not found | 08:22 |
semarie | but I agree that documented installed doesn't generate it | 08:22 |
semarie | documented installation* procedure* | 08:23 |
davemc_ | ah. | 08:23 |
davemc_ | GET /dist/tryton-sao.min.js HTTP/1.1" 405 - | 08:23 |
davemc_ | "GET /dist/tryton-sao.min.css HTTP/1.1" 405 - | 08:23 |
davemc_ | "GET /dist/tryton-sao.js HTTP/1.1" 405 - | 08:23 |
davemc_ | "GET /dist/tryton-sao.css HTTP/1.1" 405 - | 08:23 |
davemc_ | Which results in a blank user interface, ie no login box | 08:23 |
semarie | 405 for /dist/tryton-sao.{js,css} are unexpected | 08:24 |
davemc_ | Just the hamburger top left | 08:24 |
davemc_ | Ok, cool. Unexpected means something to fix | 08:24 |
davemc_ | Since those files aren't in the hg clone, something must generate them? | 08:24 |
semarie | I think there are generated by 'npm install --production' | 08:24 |
semarie | ACTION is checking | 08:25 |
davemc_ | ah. | 08:25 |
davemc_ | ok, so it runs but trips over | 08:25 |
davemc_ | npm WARN lifecycle tryton-sao@5.7.0~postinstall: cannot run in wd tryton-sao@5.7.0 npx bower install (wd=/srv/tryton/tryton-env/sao) | 08:25 |
davemc_ | I tried running npx bower install --allow-root | 08:27 |
davemc_ | but no output and no .js file | 08:27 |
davemc_ | I'm trying now the npm install method | 08:29 |
semarie | running './node_modules/grunt/bin/grunt dev' seems to generate them | 08:31 |
davemc_ | cool, excellent, thank you, will give that a try | 08:31 |
davemc_ | yup, it did make them | 08:33 |
semarie | and with ./node_modules/grunt/bin/grunt uglify , it will generate tryton-sao.min.js | 08:34 |
davemc_ | ok. Interesting naming convention. | 08:34 |
davemc_ | yay, I've got a login box now. | 08:35 |
davemc_ | thank you so much for those pointers. | 08:35 |
semarie | thanks to you. I updated my build script :) | 08:35 |
davemc_ | excellent, good synergy. | 08:36 |
davemc_ | I'm documenting all my steps for clean install on clean OS | 08:36 |
davemc_ | will submit it when complet.e | 08:36 |
cedk | I think we should put in the README to launch: npx grunt dev | 08:45 |
davemc_ | currently it just says grunt dev | 08:45 |
cedk | yes because npx did not exist at that time and we expected people to know where to find it | 08:48 |
semarie | cedk: I have a problem with po2json : 'Local Npm module "grunt-po2json" not found. Is it installed?' | 08:55 |
semarie | I have such warnings after "npm install --production" : | 08:55 |
semarie | npm WARN grunt-xgettext@0.3.5 requires a peer of grunt@~0.4.5 but none is installed. You must install peer dependencies yourself. | 08:55 |
semarie | npm WARN grunt-po2json@0.3.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself. | 08:55 |
semarie | ACTION knows almost nothing to nodejs | 08:56 |
davemc_ | I see this WARN too | 08:57 |
cedk | semarie: po2json should not be needed for production as json file are produced for the release | 09:02 |
semarie | but I am running tip on production :) | 09:03 |
cedk | semarie: using source code requires to install dev tools | 09:04 |
semarie | as said, I know very little to nodejs. could you be more explicit ? I assume it is some 'npm install stuff' ? | 09:06 |
cedk | semarie: if you run from source (not release), you must run "npm install" which will install po2json | 09:07 |
semarie | ok, it makes sense | 09:08 |
davemc_ | so how to install a suitable version of grunt so that grunt-po2json is happy? | 09:08 |
semarie | davemc_: 'npm install' should install it | 09:09 |
semarie | a bit more fun for me: node_modules/puppeteer/lib/helper.js:279 Error: Unsupported platform: openbsd | 09:11 |
davemc_ | 'should' and 'does' are at variance | 09:11 |
davemc_ | sao$ npm install | 09:11 |
davemc_ | npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@npmjs.com for more info. | 09:11 |
davemc_ | > tryton-sao@5.7.0 postinstall /srv/tryton/tryton-env/sao | 09:11 |
davemc_ | > npx bower install | 09:11 |
davemc_ | npm WARN grunt-xgettext@0.3.5 requires a peer of grunt@~0.4.5 but none is installed. You must install peer dependencies yourself. | 09:11 |
davemc_ | npm WARN grunt-po2json@0.3.0 requires a peer of grunt@~0.4.1 but none is installed. You must install peer dependencies yourself. | 09:11 |
davemc_ | audited 564 packages in 8.173s | 09:11 |
semarie | cedk: I have a problem with "Check price_decimal configuration" I think. when running trytond-admin I have exception "psycopg2.errors.UndefinedColumn: column a.product_price_decimal does not exist" | 10:19 |
semarie | I will open an issue | 10:19 |
cedk | semarie: did you make an update first? | 10:21 |
semarie | it fails on trytond-admin -m | 10:21 |
semarie | I am trying to do trytond-admin --all first | 10:21 |
cedk | the schema must be always fixed first | 10:23 |
semarie | yes, it seems that running "trytond-admin --all" first is fine, and next "trytond-admin -m" is fine too | 10:23 |
semarie | ok thanks, I will update my update script :) | 10:23 |
-!- thaneor(~ldlc6@179.26.31.33) has joined #tryton | 14:33 | |
-!- cedk(~ced@gentoo/developer/cedk) has joined #tryton | 19:02 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!