montera34 / pageonex

PageOneX. Analyzing front pages
http://pageonex.com
GNU Affero General Public License v3.0
53 stars 13 forks source link

After moving to new server CSS and D3 svg charts not working #246

Open numeroteca opened 1 year ago

numeroteca commented 1 year ago

We moved Pageonex.com to a new server following this method (using Docker and an external database), it experiences the same problems as in the previous server (#232), that is, it crashes (4GB RAM, 3 VCPU).

There are also new problems:

The problems can be seen in the console log in the browser: image

Firefox detects problems with some files: Screenshot from 2023-05-12 15-47-11

The column chart above the front pages is not loading: image

See this thread as an example: https://pageonex.com/numeroteca/available-space-3/

Now we are able to enter and see the logs and CPU performance more easily.

numeroteca commented 1 week ago

In the embed view the script is loaded with http: <%= javascript_include_tag "http://d3js.org/d3.v3.min.js" %> (source: https://github.com/montera34/pageonex/blob/aaee916750d0e29dfc5e35db7548290c18875eb1/app/views/coding/embed.html.erb#L52)

However, in the normal display is loaded with this. <%= javascript_include_tag "d3.v3.min.js" %> (source: https://github.com/montera34/pageonex/blob/aaee916750d0e29dfc5e35db7548290c18875eb1/app/views/coding/display.html.erb#L219)

rporres commented 1 week ago

remove the http in the one that has it 😄