{"id":87,"date":"2025-02-19T22:28:28","date_gmt":"2025-02-19T21:28:28","guid":{"rendered":"https:\/\/www.fabienm.eu\/uncolmarien\/?p=87"},"modified":"2025-02-19T22:28:28","modified_gmt":"2025-02-19T21:28:28","slug":"installation-de-vigilo","status":"publish","type":"post","link":"https:\/\/www.fabienm.eu\/uncolmarien\/2025\/02\/19\/installation-de-vigilo\/","title":{"rendered":"Installation de Vigilo"},"content":{"rendered":"\n<p>Ceci est une prise de notes sur l&rsquo;installation de Vigilo pour le <a href=\"https:\/\/www.cadrescolmar.org\/\">CADRes Colmar et environs<\/a>.<\/p>\n\n\n\n<p>Vigilo est une application de signalement de probl\u00e8me sur la voirie. Elle est compos\u00e9e de deux partie:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><a href=\"https:\/\/github.com\/jesuisundesdeux\/vigilo-webapp\">vigilo-webapp<\/a><\/strong>: C&rsquo;est l&rsquo;interface pour d\u00e9clarer les observations et les mod\u00e9rer. Elle est cod\u00e9e en node.js et se connecte au backend pour la sauvegarde des donn\u00e9es.<\/li>\n\n\n\n<li><a href=\"https:\/\/github.com\/jesuisundesdeux\/vigilo-backend\"><strong>vigilo-backend:<\/strong> <\/a>c&rsquo;est la partie serveur qui est cod\u00e9e en PHP\/MySQL et qui stock les observation dans la base de donn\u00e9es.<\/li>\n<\/ul>\n\n\n\n<p>Il est possible de n&rsquo;installer que la partie backend sur un h\u00e9bergement mutualis\u00e9 type OVH qu&rsquo;on utilise souvent pour les site web. Il suffit ensuite de demander la \u00abconnexion\u00bb \u00e0 l&rsquo;application officiel install\u00e9 sur vigilo.city <a href=\"https:\/\/app.vigilo.city\/\">https:\/\/app.vigilo.city\/<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vigilo Backend<\/h2>\n\n\n\n<p>L&rsquo;installation du backend est relativement est expliqu\u00e9 ici. \u00c7a se fait relativement bien, mais il semble y avoir un bug lorsque l&rsquo;on utilise pas le service MapQuest : la g\u00e9n\u00e9ration des images ne fonctionne pas de m\u00eame que la mod\u00e9ration.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Vigilo WebApp<\/h2>\n\n\n\n<p>L\u00e0 c&rsquo;est une autre paire de manche car c&rsquo;est du node.js, et j&rsquo;ai pas l&rsquo;impression que \u00e7a tourne sur notre serveur mutualis\u00e9 d&rsquo;OVH.<\/p>\n\n\n\n<p>Il serait pourtant int\u00e9ressant de pouvoir le faire tourner sur un h\u00e9bergement que l&rsquo;on ma\u00eetrise pour pouvoir le faire \u00e9voluer. Et notamment pour pouvoir ajouter des cat\u00e9gories.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Installation de WebApp en local<\/h3>\n\n\n\n<p>Avant d&rsquo;essayer de le d\u00e9ployer sur un serveur essayons de faire \u00e7a en local :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/opt\/\n$ mkdir vigilo;cd vigilo\n$ git clone https:\/\/github.com\/jesuisundesdeux\/vigilo-webapp.git\n$ cd vigilo-webapp.git\n$ npm install\nnpm WARN deprecated osenv@0.1.5: This package is no longer supported.\nnpm WARN deprecated phin@2.9.3: Package no longer supported. Contact Support at https:\/\/www.npmjs.com\/support for more info.\nnpm WARN deprecated source-map-url@0.4.1: See https:\/\/github.com\/lydell\/source-map-url#deprecated\nnpm WARN deprecated figgy-pudding@3.5.2: This module is no longer supported.\nnpm WARN deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported\nnpm WARN deprecated har-validator@5.1.5: this library is no longer supported\nnpm WARN deprecated npmlog@4.1.2: This package is no longer supported.\nnpm WARN deprecated copy-concurrently@1.0.5: This package is no longer supported.\nnpm WARN deprecated are-we-there-yet@1.1.7: This package is no longer supported.\nnpm WARN deprecated source-map-resolve@0.5.3: See https:\/\/github.com\/lydell\/source-map-resolve#deprecated\nnpm WARN deprecated glob@7.1.7: Glob versions prior to v9 are no longer supported\nnpm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https:\/\/v8.dev\/blog\/math-random for details.\nnpm WARN deprecated fstream@1.0.12: This package is no longer supported.\nnpm WARN deprecated move-concurrently@1.0.1: This package is no longer supported.\nnpm WARN deprecated request@2.88.2: request has been deprecated, see https:\/\/github.com\/request\/request\/issues\/3142\nnpm WARN deprecated resolve-url@0.2.1: https:\/\/github.com\/lydell\/resolve-url#deprecated\nnpm WARN deprecated urix@0.1.0: Please see https:\/\/github.com\/lydell\/urix#deprecated\nnpm WARN deprecated fs-write-stream-atomic@1.0.10: This package is no longer supported.\nnpm WARN deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\nnpm WARN deprecated gauge@2.7.4: This package is no longer supported.\nnpm WARN deprecated html-webpack-plugin@3.2.0: 3.x is no longer supported\nnpm WARN deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported\nnpm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please\nnpm ERR! code 1\nnpm ERR! path \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/node-sass\nnpm ERR! command failed\nnpm ERR! command sh -c node scripts\/build.js\nnpm ERR! Building: \/usr\/local\/bin\/node \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/node-gyp\/bin\/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=\nnpm ERR! gyp info it worked if it ends with ok\nnpm ERR! gyp verb cli &#91;\nnpm ERR! gyp verb cli   '\/usr\/local\/bin\/node',\nnpm ERR! gyp verb cli   '\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/node-gyp\/bin\/node-gyp.js',\nnpm ERR! gyp verb cli   'rebuild',\nnpm ERR! gyp verb cli   '--verbose',\nnpm ERR! gyp verb cli   '--libsass_ext=',\nnpm ERR! gyp verb cli   '--libsass_cflags=',\nnpm ERR! gyp verb cli   '--libsass_ldflags=',\nnpm ERR! gyp verb cli   '--libsass_library='\nnpm ERR! gyp verb cli ]\nnpm ERR! gyp info using node-gyp@3.8.0\nnpm ERR! gyp info using node@21.7.2 | linux | x64\nnpm ERR! gyp verb command rebuild &#91;]\nnpm ERR! gyp verb command clean &#91;]\nnpm ERR! gyp verb clean removing \"build\" directory\nnpm ERR! gyp verb command configure &#91;]\nnpm ERR! gyp verb check python checking for Python executable \"python2\" in the PATH\nnpm ERR! gyp verb `which` failed Error: not found: python2\nnpm ERR! gyp verb `which` failed     at getNotFoundError (\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:13:12)\nnpm ERR! gyp verb `which` failed     at F (\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:68:19)\nnpm ERR! gyp verb `which` failed     at E (\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:80:29)\nnpm ERR! gyp verb `which` failed     at \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:89:16\nnpm ERR! gyp verb `which` failed     at \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/isexe\/index.js:42:5\nnpm ERR! gyp verb `which` failed     at \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/isexe\/mode.js:8:5\nnpm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:203:21)\nnpm ERR! gyp verb `which` failed  python2 Error: not found: python2\nnpm ERR! gyp verb `which` failed     at getNotFoundError (\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:13:12)\nnpm ERR! gyp verb `which` failed     at F (\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:68:19)\nnpm ERR! gyp verb `which` failed     at E (\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:80:29)\nnpm ERR! gyp verb `which` failed     at \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/which\/which.js:89:16\nnpm ERR! gyp verb `which` failed     at \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/isexe\/index.js:42:5\nnpm ERR! gyp verb `which` failed     at \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/isexe\/mode.js:8:5\nnpm ERR! gyp verb `which` failed     at FSReqCallback.oncomplete (node:fs:203:21) {\nnpm ERR! gyp verb `which` failed   code: 'ENOENT'\nnpm ERR! gyp verb `which` failed }\nnpm ERR! gyp verb check python checking for Python executable \"python\" in the PATH\nnpm ERR! gyp verb `which` succeeded python \/usr\/bin\/python\nnpm ERR! gyp ERR! configure error \nnpm ERR! gyp ERR! stack Error: Command failed: \/usr\/bin\/python -c import sys; print \"%s.%s.%s\" % sys.version_info&#91;:3];\nnpm ERR! gyp ERR! stack   File \"&lt;string>\", line 1\nnpm ERR! gyp ERR! stack     import sys; print \"%s.%s.%s\" % sys.version_info&#91;:3];\nnpm ERR! gyp ERR! stack                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nnpm ERR! gyp ERR! stack SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?\nnpm ERR! gyp ERR! stack \nnpm ERR! gyp ERR! stack     at genericNodeError (node:internal\/errors:984:15)\nnpm ERR! gyp ERR! stack     at wrappedFn (node:internal\/errors:538:14)\nnpm ERR! gyp ERR! stack     at ChildProcess.exithandler (node:child_process:422:12)\nnpm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:519:28)\nnpm ERR! gyp ERR! stack     at maybeClose (node:internal\/child_process:1105:16)\nnpm ERR! gyp ERR! stack     at ChildProcess._handle.onexit (node:internal\/child_process:305:5)\nnpm ERR! gyp ERR! System Linux 5.15.0-126-generic\nnpm ERR! gyp ERR! command \"\/usr\/local\/bin\/node\" \"\/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/node-gyp\/bin\/node-gyp.js\" \"rebuild\" \"--verbose\" \"--libsass_ext=\" \"--libsass_cflags=\" \"--libsass_ldflags=\" \"--libsass_library=\"\nnpm ERR! gyp ERR! cwd \/home\/fabien\/www\/cadrescolmar\/vigilo-webapp\/node_modules\/node-sass\nnpm ERR! gyp ERR! node -v v21.7.2\nnpm ERR! gyp ERR! node-gyp -v v3.8.0\nnpm ERR! gyp ERR! not ok \nnpm ERR! Build failed with error code: 1\n<\/code><\/pre>\n\n\n\n<p>Bon il a besoin de python2 ?! \u00c7a date un peu tout \u00e7a.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ceci est une prise de notes sur l&rsquo;installation de Vigilo pour le CADRes Colmar et environs. Vigilo est une application de signalement de probl\u00e8me sur la voirie. Elle est compos\u00e9e de deux partie: Il est possible de n&rsquo;installer que la &hellip; <a href=\"https:\/\/www.fabienm.eu\/uncolmarien\/2025\/02\/19\/installation-de-vigilo\/\">Continuer la lecture <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,39,44,46,43,45,41,40],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-non-classe","tag-developpement","tag-informatique","tag-javascript","tag-mysql","tag-npm","tag-php","tag-vigilo","tag-web"],"_links":{"self":[{"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":5,"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/posts\/87\/revisions\/94"}],"wp:attachment":[{"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fabienm.eu\/uncolmarien\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}