javascriptlaravelgantt-chartdhtmlx

Dhtmlx Gantt worked at XAMPP but not VPS server


I'm using dhtmlx Gantt in Laravel.

I use this dhtmlx gantt script:

https://github.com/Ojsholly/gantt_chart

It perfectly worked at XAMPP. However I put my VPS server then I got this error:

Failed to load the data from 
https://xxxxxxxxxxxx/api/data?dhxr160868036091=1
server returns 404 

I thought the cause is Node.js wasn't installed. I installed it but I still have same error.

My Node. js version is v14.15.3

My Blade file's js part is this

 <script src="https://cdn.dhtmlx.com/gantt/edge/dhtmlxgantt.js"></script>    
 <link href="https://cdn.dhtmlx.com/gantt/edge/dhtmlxgantt.css" rel="stylesheet">

What might be the problem?


Solution

  • Node.js shouldn't be related to that issue. It seems that you need to change the URL that you use to load tasks.