about a website which runs with chicagoboss and otp19, I have three files: index.html, config.js and zeus_config_controller.erl, those 3 files have been working just fine before, but after I copy those files to a new server and run the website at this new server, then the problem occurs.
Seems that chicagoboss cannot connect the request from js file to erl file anymore, the log shows:
14:12:25.360 [info] GET /config/function1/paramX [zeus] 200 98ms
14:12:25.404 [info] GET /config/function2/paramY [zeus] 200 108ms
Now there's no erl log between those two lines of logs as it used to be. Can anyone please suggest if I need to do any configuration somewhere please ? I didnt do any configuration related to this chicagoboss yet.
thank you so much.
See if you can get the following example to work:
zeus/src/controller/zeus_config_controller.erl:
zeus/src/view/config/index.html:
zeus/priv/static/js/myjs.js:
Enter the following url in your browser:
then click the button. What do you see? Any errors in your browser's js console?
When I enter
http://localhost:8001/config/indexfor my example above, I see the following output:That doesn't make a lot of sense to me because nothing in my code explicitly sends a GET request to
/config/get_data. Then when I click on the button on the page, I see:...as expected.