Menu

#11 Importing python config files to GFE

1.0
closed
nobody
None
2018-05-12
2018-05-09
No

Is there a way to mass import python config files to GFE or where they store, for when you go to GFE > Define Config and ifpIMAGE Files? I am making python files for grids I want to save with IfpImage. I'm actually figuring this out quite well! I'd like to know where stuff saves though.

thanks!

Discussion

  • Mike Romberg

    Mike Romberg - 2018-05-09

    The gfe is/was setup to store many files in a manner that makes upgrades to the software mostly painless. See the documentation concerning the BASE/SITE/user setup. The idea is that BASE files come with the system and are updated with a new version of the software. Files stored under SITE and user are not touched durring an update and are where customization and configuration is stored.

    HOWEVER, right now it is best to do a full clean install of everything from the build tree.   I am modifying the gfe install to be more inline with how other linux software is done.   This is a somewhat disruptive operation and I'm not paying a whole lot of attention to the BASE/SITE/user thing for now.  So, remvoving the install directory and staring fresh is the way to go until things settle down.
    
      This does mean that one will loose all of the changes each time the software is updated.   And yes this is painful.   So, there are a few ways one could save some files and copy them back after a clean re-install.
    
        First the text files are saved on the filesystem under the directory prefix/var/gfe/data/databases/{user}/TEXT.   Where {user} is [BASE, SITE, or username].  Alot of SITE and user specific data can be found under var/data/databases/{user} such as samplesets, reference sets, etc.  One could copy the files to and from here durring an update.   Be careful to set the permissions correctly or the server will have a tantrum about it.
    
           The second method is to use the ifp.serverText program to save/get text files from the running server.  For example:
    
        gfei -m ifp.serverText -u romberg -s -n killroy -f testIFPImage.py -c Config
    
          Will save a local file called testIFPImage.py to a name called killroy in the Config section of the database under the romberg user name.   Run 'gfei -m ifp.serverText' for usage information and see the docs.
    
            Finally, one can use one of the web interfaces of a running ifpServer.   Just point your browser at something like:
    
    http://localhost:8084/rest/text/GFECONFIG/
    
      Where the 8084 bit is the port your server is using (it is 8044 by default).  You can get copies of the files just by clicking in your browser.
    
     
  • Mike Romberg

    Mike Romberg - 2018-05-12
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB