Giter VIP home page Giter VIP logo

Comments (12)

BNNorman avatar BNNorman commented on May 27, 2024

Totally fresh install ./build client throws an error:-

*packaging Javascript
./build line 152: node_modules/rollup/bin/rollup: no such file or directory

The node_modules folder does not contain a rollup folder at this point and only contains 14 sub folders (my other system has loads more).

I will stop installing till I hear from you.

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

Hey up. Found some messages whuich had scrolled off the screen during ./build setup setup-dev

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

reverted to using buster for php7.3 and added mbstring to the install list but ./build setup setup-dev throws this warning
leaflet.marckercluster1.4.1 requires a peer of leaflet@~1.3.1 but none installed

./build client now works though it does list a load of circular dependencies in node_modules - can these be ignored?

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

The map now comes up but I don't get any pins (leflet.markercluster issue I guess). Also still get the invalid JSON < character we discussed at the meetup.

from air-quality-web.

sbrl avatar sbrl commented on May 27, 2024

leaflet.marckercluster1.4.1 requires a peer of leaflet@~1.3.1 but none installed

Yep, you can ignore this warning.

./build client now works though it does list a load of circular dependencies in node_modules - can these be ignored?

Yeah, you can ignore these too. It's the Chart.js dependency being badly packaged causing that issue.

./build client now works though it does list a load of circular dependencies in node_modules - can these be ignored?

What messages were those?

chown -R www-data:www-data is best done AFTER running the build commands

Oh, yeah! That's a great point. I'll update the instructions. The build script needs write access to the build folder in order to work. On the production server I do sudo -u www-data NODE_ENV=production ./build client.

The notes on denying access for nginx and apache need to be clarified. In apache the file should be called .htaccess. In nginx you have to edit /etc/nginx/sites-available/default (or if using a virtual site edit the file belonging to that site).

Indeed. I'll investigate clarifying that a bit.

from air-quality-web.

sbrl avatar sbrl commented on May 27, 2024
  • Instructions: reordered
  • data/ directory web server configuration: clarified (I don't know what I was thinking when I was writing that. I think I must have been tired - Thursday was a long day.....)
  • Added additional check to avoid issues whereby people don't clone the repository with git
  • Added additional check to avoid issues whereby the repository directory is not writeable

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

Clearly, you build directly within the /var/www/html folder - I take a more cautious approach building outside then copying the files and setting their ownerships

Circulare dependencies:-

client_src/js/index.mjs → app/app.js...
(!) postcss plugin: The onwrite hook used by plugin postcss is deprecated. The generateBundle hook should be used instead.
(!) Circular dependency: node_modules/moment/src/lib/create/from-anything.js -> node_modules/moment/src/lib/create/valid.js -> node_modules/moment/src/lib/create/utc.js -> node_modules/moment/src/lib/create/from-anything.js
(!) Circular dependency: node_modules/moment/src/lib/units/month.js -> node_modules/moment/src/lib/moment/get-set.js -> node_modules/moment/src/lib/units/month.js
(!) Circular dependency: node_modules/moment/src/lib/moment/get-set.js -> node_modules/moment/src/lib/units/year.js -> node_modules/moment/src/lib/moment/get-set.js
(!) Circular dependency: node_modules/moment/src/lib/create/local.js -> node_modules/moment/src/lib/create/from-anything.js -> node_modules/moment/src/lib/locale/locales.js -> node_modules/moment/src/lib/locale/base-config.js -> node_modules/moment/src/lib/units/week.js -> node_modules/moment/src/lib/create/local.js
(!) Circular dependency: node_modules/moment/src/lib/create/local.js -> node_modules/moment/src/lib/create/from-anything.js -> node_modules/moment/src/lib/locale/locales.js -> node_modules/moment/src/lib/locale/base-config.js -> node_modules/moment/src/lib/units/week.js -> node_modules/moment/src/lib/units/week-calendar-utils.js -> node_modules/moment/src/lib/create/local.js
(!) Circular dependency: node_modules/moment/src/lib/create/from-string-and-format.js -> node_modules/moment/src/lib/create/from-string.js -> node_modules/moment/src/lib/create/from-string-and-format.js
(!) Circular dependency: node_modules/moment/src/lib/create/local.js -> node_modules/moment/src/lib/create/from-anything.js -> node_modules/moment/src/lib/create/from-string-and-array.js -> node_modules/moment/src/lib/create/from-string-and-format.js -> node_modules/moment/src/lib/create/from-string.js -> node_modules/moment/src/lib/create/from-array.js -> node_modules/moment/src/lib/create/local.js
(!) Circular dependency: node_modules/moment/src/lib/duration/constructor.js -> node_modules/moment/src/lib/duration/valid.js -> node_modules/moment/src/lib/duration/constructor.js
(!) Circular dependency: node_modules/moment/src/lib/duration/create.js -> node_modules/moment/src/lib/duration/constructor.js -> node_modules/moment/src/lib/duration/valid.js -> node_modules/moment/src/lib/duration/create.js
(!) Circular dependency: node_modules/moment/src/lib/duration/create.js -> node_modules/moment/src/lib/units/offset.js -> node_modules/moment/src/lib/duration/create.js
(!) Circular dependency: node_modules/moment/src/lib/moment/add-subtract.js -> node_modules/moment/src/lib/duration/create.js -> node_modules/moment/src/lib/units/offset.js -> node_modules/moment/src/lib/moment/add-subtract.js
created app/app.js in 19.3s

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

I think my map display problems are due to the NGINX php config in sites-available/default. I tried un commenting the location /.php section but (using webget) I get this page returned - error message highlighted near end.

I don't recollect having to change anything on apache (might have been done for me with an apt install somewhere along the line.

'\n\n \n \n <title>Error 404 (Not Found)!!1</title>\n <style>\n {margin:0;padding:0}html,code{font:15px/22px arial,sans-serif}html{background:#fff;color:#222;padding:15px}body{margin:7% auto 0;max-width:390px;min-height:180px;padding:30px 0 15px} > body{background:url(//www.google.com/images/errors/robot.png) 100% 5px no-repeat;padding-right:205px}p{margin:11px 0 22px;overflow:hidden}ins{color:#777;text-decoration:none}a img{border:0}@media screen and (max-width:772px){body{background:none;margin-top:0;max-width:none;padding-right:0}}#logo{background:url(//www.google.com/images/branding/googlelogo/1x/googlelogo_color_150x54dp.png) no-repeat;margin-left:-5px}@media only screen and (min-resolution:192dpi){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat 0% 0%/100% 100%;-moz-border-image:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) 0}}@media only screen and (-webkit-min-device-pixel-ratio:2){#logo{background:url(//www.google.com/images/branding/googlelogo/2x/googlelogo_color_150x54dp.png) no-repeat;-webkit-background-size:100% 100%}}#logo{display:inline-block;height:54px;width:150px}\n </style>\n \n

404. That\xe2\x80\x99s an error.\n

The requested URL /api.php was not found on this server.
That\xe2\x80\x99s all we know.\n'

from air-quality-web.

sbrl avatar sbrl commented on May 27, 2024

Hrm. I could certainly investigate refactoring so that you serve a subdirectory of the repository instead via the web server - I've seen FreshRSS do that.

You can ignore the circular references.

Could you paste your Nginx config here please? Sounds like a bug in it to me. Might be able to draft an example one from your version if you like

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

Here you go. Also access.log and error.log.

info.txt

from air-quality-web.

BNNorman avatar BNNorman commented on May 27, 2024

Sorted. Some fairy put a semi colon at the end of the password line in data/setting.toml. It's working now.
That's the problem when mixing languages in daily life.

from air-quality-web.

sbrl avatar sbrl commented on May 27, 2024

Cool, glad you could get it sorted! 😺

from air-quality-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.