Hi,
I am building an Wappler NodeJS app to run on Docker. The app collects customer’s CMS log files, stores and analyses them, and provides a website for the customers to log in and view their CMS’s log file history with a dashboard of charts.
I’ve designed the app to be two Wappler projects, a website and import API. This allows me to configure the separate deployment clusters to the resource needs of each aspect of the app. During development I have found that I am getting more and more code that needs to be shared between the two sides of the app. So I decided to merge the import API code into the website app to make it just one project and therefore have all the code available to both sides of the app.
In order to deploy to separate clusters I set up an additional target, Stage-Import, to push the same codebase to but be used solely for the importing of the customers’ logs. However, I was not able to deploy the codebase to this new target as I got the error “Service ‘web’ failed to build”.
I figured that this means for each Wappler project you can only have one target for each usage environment. Is this correct?
So I have now gone back to the two separate projects but I still have the issue of how best to share common code between the two.
Any thoughts, ideas will be welcome.
Thanks
Allan
Last updated: