Compile/build OHIF viewer for Production environment

905 views
Skip to first unread message

Richard Smith

unread,
Nov 29, 2016, 10:28:27 AM11/29/16
to cornerstone platform
Hi All,

I have successfully ran the OHIFViewer under Windows as it is explained in the Wiki.  Many thanks!!!!

Now I am trying to compile/build OHIFViewer for the production environment. Since, its running under METEOR, the documentation suggest that in order to run the meteor application under production environment it needs to be Build.

I followed Meteor suggested guideline to build the application under Windows architecture.  Steps are given below for reference.  The build process ran successfully with no errors.  However, as soon as I try to run the build application under PORT 3030 I do get the Tabbed Study Worklist screen but it would hang there and not bring any records from the Orthanc server.  Instead, I get an error under DOS terminal  "Exception while invoking method 'StudyListSearch' undefined".  

I performed quick search for StudyListSearch in the development environment and I do find studylistSearch.js file containing the method under the folder Isopacks but I do not find this method and few others in the production build.

It seems like many JavaScript files are missing in the final build directory.  This is strange because I'm following Meter Build guidelines.

My steps to produce production build are as follows.

C:\Viewer-master\OHIFViewer\set METEOR_PACKAGE_DIRS=..\Packages
C:\Viewer-master\OHIFViewer\npm install --production
C:\Viewer-master\OHIFViewer\meteor build --directory C:\MyApp


Testing final build under sandbox to make sure all is working accordingly.
MongoDB is running as service.
Environment variable for METEOR_SETTINGS is set for orthancDICOMWeb.json
C:\MyApp\SET MONGO_URL=mongodb://localhost:27017/data
C:\MyApp\SET ROOT_URL=http://localhost
C:\MyApp\SET PORT=3030
C:\MyApp\node main.js

From what I have explained, kindly assist me in solving the issue to build the application correctly so that it can grab all the files.

Many thanks!
Rick

jungwon jin

unread,
Aug 30, 2017, 2:13:52 AM8/30/17
to cornerstone platform
I got same issue, and I use Mac environment.

I've setup Orthanc-server on my localhost 8042 port and it seems successfully working, so I've uploaded a DICOM Sample image into the server.

But when I run the OHIF viewer and connect to localhost:3000, the server shows,
Exception while invoking method 'StudyListSearch' undefined 
logs only and the web page is showing Loading marks forever.

Did I miss something?
Thanks.
Message has been deleted

Muralidhar Reddy

unread,
Jun 26, 2018, 12:45:57 PM6/26/18
to cornerstone platform
Hello All,

    I am also seeing the same issue been discussed : when ran in production mode : "Exception while invoking method 'StudyListSearch' undefined". 
    My env is Redhat Linux. I am also not able to add server manually - I don't see server type drop down values.
    The same config file is working fine in development mode.

   Did you people found the reason for the issue.

Regards,
Murali
Reply all
Reply to author
Forward
0 new messages