opensourceBIM / bimvie.ws

Javascript client for Building Information Modelling, using open standards like IFC, BCF and BIMSie. Using Bootstrap, BIM Surfer, etc..
GNU Affero General Public License v3.0
171 stars 87 forks source link

Release process #80

Open dbarthelemy opened 7 years ago

dbarthelemy commented 7 years ago

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 ?

rubendel commented 7 years ago

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
dbarthelemy commented 7 years ago

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 commented 7 years ago

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.

rubendel commented 7 years ago

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

dbarthelemy commented 7 years ago

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.

rubendel commented 7 years ago

Ok great, I'll be online tomorrow

landraud commented 7 years ago

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 commented 7 years ago

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