Hello, I have been trying to use this release (webpack) to generate an owa and install it to refapp 2.5 but it seems that it does not generated the necessary files to correctly install it. I tried both build:deploy and build:production.
build deploy copied the webpack files to the owa directory but app structure was not there. same thing for the zip file generated.
In either case, the app did not show up in the owa app management screen. Am is missing something?
Hi, thank you for getting back. I was using refapp 2.5 stand-alone version. According to the documentation, the build:deploy should deploy the owa to local server but you could see that the app’s structure was not there.
Based on your webpack.config.js (line #55), when you do a local deploy, the app will be copied to C:/Users/tsmith/Downloads/openmrs-standalone-2.5/appdata/owa/. Is this the same directory you are showing in the screenshot?
Can you show the list Manage Apps page of the OWA Module? Also, can you build the ZIP file and deploy the app using the Manage Apps page and then upload the Tomcat log to pastie.org?
Can you either share your ZIP file, or confirm that it contains a file called manifest.webapp in the root? Can you also share your Tomcat log and show us the output you get when you run npm run build:prod?
The problem was a bug in an outdated Webpack plugin. I fixed it and released a new version (v0.3.2). You’ll need to update the generator (npm install -g generator-openmrs-owa) and re-scaffold your app.
Sure, no problem. The manifest.webapp file wasn’t getting copied to the dist folder, which is what I fixed in the v0.3.2 release.
To speed up your development cycle, consider running npm run watch. This will watch your files for changes and automatically redeploy when a change is detected. To manually deploy, running npm run build:deploy is the best option. Uploading the ZIP file is the most manual, and hence the slowest.