Hi.
Just copy content of âdistâ folder from your build directory to the root of your desired web site and navigate to it. Shoud work.
Example:
I created virtual host on my server named ohif.mydomain.local, copied all from dist folder to the folder of virtual host. Then just go to ohif.mydomain.local and it works.
I think the reason is shown in your screenshots. On IIS you call a base directory of website and on Linux you call for subdirectory âohifâ. Webserver expects to find all parts of OHIF in base directory and it fails on 2 last cases. You can check it by opening code console in Chrome and see if you got multiple 404 messages for OHIFâs components.
yes ,you are right!
i changed my dist folder to the base root of website
it workst normal now ,thank you very much!
the last question:
because i am old developer ,i only understand the js,css ,html files just copy to the website then it works.
react ,vue ,nodejs is new develop framework. they provider a complie process.
whatâs the different between i directly modify some js files in the âdistâ folder and modify some source js file then use yarn build process?
Well, iâm not a developer, i dont know. I can only tell that changes in setting file âapp-config.jsâ in base (or dist) folder, such as an address of dicom archive, are applied without any compilation.