bimvie.ws icon indicating copy to clipboard operation
bimvie.ws copied to clipboard

Release process

Open dbarthelemy opened this issue 8 years ago • 8 comments

I would like to build my own release of bimvie.ws and deploy it on a Ubuntu server running Tomcat 8 and BIMserver 1.5.67. The goal here is to test changes I made in both BIMsurfer and bimvie.ws but not on my local machine (OSX). I did not found specific explanations to build such a release in Wiki or in Video. Could you please give me some guidelines ?

dbarthelemy avatar Mar 06 '17 11:03 dbarthelemy

It is not really necessary to make a build. I am running both BIMvie.ws, BIMsurfer V1 and the BimServerJavaScriptApi as modules in BIMserver. Every change is directly available after refreshing the browser. You can also just copy all the sources to a directory server by a webserver and link them all together (by putting the right paths in settings.js).

If you really want to make a build (for example to combine all the JS and CSS files), have a look at the Gruntfile.js file in the BIMvie.ws project. The only commands on the build server are:

npm install
/usr/local/bin/grunt

rubendel avatar Mar 06 '17 11:03 rubendel

BIMserver is deployed from Tomcat. I executed npm install & grunt on bimvie.ws, BIMsurfer & BIMserver-Javascript-API, then I configured Tomcat so that output directories are served as static content from the same server. Then it is unclear to me how to reinstall bimvie.ws, BIMsurfer & BIMserver-Javascript-API as pluggins from the running BIMserver instance.

dbarthelemy avatar Mar 08 '17 08:03 dbarthelemy

Eventually, I managed to make it works by configuring Tomcat to serve the complete project (instead of output directories). I also updated settings.js file to return a fixed version and my BIMserver URL.

At least I can continue my experiments... but I don't realy like the idea of serving the complete project files using Tomcat instead of a real release (using grunt) based on output directories.

dbarthelemy avatar Mar 10 '17 16:03 dbarthelemy

That should not be necessary, would you be up for a short call to try and figure this out?

rubendel avatar Mar 11 '17 08:03 rubendel

Hi Ruben, that would be nice. I am available tomorrow or next tuesday to make a Skype session (david.barthelemy13). We are on the same timezone.

dbarthelemy avatar Mar 15 '17 08:03 dbarthelemy

Ok great, I'll be online tomorrow

rubendel avatar Mar 15 '17 12:03 rubendel

Hello, during your call, did you conclude any solution? I would like to deploy my own version of bimviews.

For that, I first tried to deploy bimvie.ws using installPluginBundleFromFile. After a restart, the module is visible on modules page, but cannot access it: I obtain No webmodule bimviews found . I did the same the "official" jar provided for Bimviews and obtain the same: No webmodule bimviews found

PS, I had also installed bimsurfer and bimserverapi.

So, what is the right way to deploy my own version of BIMvie.ws as a jar module? Could you help me on this subject?

Thx

landraud avatar Apr 04 '17 09:04 landraud

I forgot to mention that I try to make it run on a tomcat server (not within eclipse).

landraud avatar Apr 04 '17 09:04 landraud