Loading...
 

B-Fabric PRODUCTION System

Information about the production database.

Building and Deploying the B-Fabric PRODUCTION System

  • Log in to fgcz-bfabric-sys as bfabric user.
    *** FGCZ BFABRIC PRODUCTIVE SYSTEM
    Last login: ... from ...
    [bfabric@fgcz-bfabric-sys:~]$
  • If you run the bfabric.sh script without any parameter, you will get the usage help listed below.
    [bfabric@fgcz-s-bfabric-sys:~]$ bfabric.sh
    NAME
    	bfabric - a tool to build and deploy the local B-Fabric instance. 
    
    DESCRIPTION
    	This tool allows one to update the B-Fabric source code, to rebuild and to deploy it. All those steps can also be performed individually.
    
    OPTIONS SUMMARY
    	-a	Start Glassfish.
    	-s	Stop the glassfish server immediately (kill -9).
    	-A	Restart Glassfish.
    	-G	Stop the glassfish server.
    	-u	Update the source code to the latest SVN Revision.
    	-U	Checkout source code from repository
    	-r	Rebuild the source code.
    	-C	Update B-Fabric database (bfabric)
    	-d	Deploy B-Fabric (bfabric-9.0.0-SNAPSHOT.war)
    	-n	Undeploy B-Fabric.
    	-l	print the tail of the logfile and wait for more logentries
    	-D	dump database to /home/bfabric/public_html/DB/bfabric-prod.sql.gz
    	-F	Perform a complete fresh install:
    				1. update the sources
    				2. rebuild the system
    				3. restart current glassfish (force)
    				4. deploy B-Fabric
    
    ENVIRONMENT
    	GLASSFISH_HOME - (/export/bfabric/bfabric/glassfish3)
    	BFABRIC_SOURCE_DIR - (/export/bfabric/bfabric/source)
    	BFABRIC_DIR - (/export/bfabric/bfabric)
    	BFABRIC_DB - (bfabric)
    	BFABRIC_REPO - (https://www.bfabric.org/repo/bfabric/branches/bfabric9)
    	NOTPRODUCTIVE -  false
    
    AUTHOR
    	B-Fabric Team <support@fgcz.ethz.ch>
    
    RUNTIME INFO
    B-Fabric Release 9.0.0
    Glasfish domain1 running, bfabric deployed: bfabric-9.0.0-SNAPSHOT  <ejb, webservices, web>  , 3.1.2.2
    java version "1.7.0_80"
    Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
    Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)
  • Announce restart of B-Fabric
  • Update the code
    [bfabric@fgcz-bfabric-sys:~]$ bfabric.sh -u
  • Rebuild the code
    [bfabric@fgcz-bfabric-sys:~]$ bfabric.sh -r
  • Deploy the code when the time you have choose at the beginning is elapsed in B-Fabric
    [bfabric@fgcz-bfabric-sys:~]$ bfabric.sh -d
  • If a database update is needed, then first check the bfabric-dump-update.sql file. If some commands are already applied to the production database, the apply the rest manually. Otherwise, if none of the commands were applied so so far, do the following in parallel to the step above in separate shell:
    [bfabric@fgcz-bfabric-sys:~]$  psql -d bfabric -f /export/bfabric/bfabric/source/application/src/misc/sql/bfabric-dump-update.sql
  • If the database update will take a while, then you have to stop GlassFish and do the database update before you restart GlassFish and deploy B-Fabric.
  • Finally, check the log for a while whether everything works well:
    [bfabric@fgcz-bfabric-sys:~]$  glog


Created by amarko. Last Modification: Friday February 2, 2024 13:08:14 CET by tuerker.