Changeset 35157


Ignore:
Timestamp:
2021-05-04T15:07:57+12:00 (3 years ago)
Author:
davidb
Message:

Added in details over which files to edit it not using 'localhost' as DL server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/BUILDING.txt

    r35146 r35157  
    3838--
    3939
     40  If you are operating a remote server for the DL install (i.e. not localhost)
     41  then there are 3 places you need edit to specify the domain name (or IP number)
     42  you are using:
     43
     44  In the following we assume the domain name of the server is 'mydomain.org'
     45 
     46
     474.1:Edit js/eurovision.js
     48
     49  Near the bottom of this JavaScript file, find the line:
     50
     51    var endpoint_url="//localhost:4040/greenstone/query"; // **** External IP? ****
     52
     53  And change to:
     54
     55    var endpoint_url="//mydomain.org:4040/greenstone/query"; // **** External IP? ****
     56   
     57
     584.2: Edit transform/layout/header.xsl
     59
     60Change:
     61
     62  <xsl:variable name="sparqlEndpointHostAndOptPort">localhost:4040</xsl:variable> <!-- **** External IP? ****-->
     63  <xsl:variable name="sparqlGraphBasePrefix">http://127.0.0.1:8383</xsl:variable>
     64
     65  <xsl:variable name="sparqlEndpointPrefix3"></xsl:variable>
     66  <xsl:variable name="sparqlEndpoint3">http://localhost:4040</xsl:variable>       <!-- **** External IP ? **** -->
     67
     68To:
     69  <xsl:variable name="sparqlEndpointHostAndOptPort">mydomain.org:4040</xsl:variable> <!-- **** External IP? ****-->
     70  <xsl:variable name="sparqlGraphBasePrefix">http://127.0.0.1:8383</xsl:variable>
     71
     72  <xsl:variable name="sparqlEndpointPrefix3"></xsl:variable>
     73  <xsl:variable name="sparqlEndpoint3">http://mydomain.org:4040</xsl:variable>       <!-- **** External IP ? **** -->
     74
    4075
    4176--
     
    4782  tar xvzf import.tar.gz
    4883
     84  export FULL_GREENSTONE_URL_PREFIX=http://mydomain.org/greenstone3/library
     85
    4986  ./FULL-REBUILD.sh
    5087
    51 
    52 
    53 
    54 transform and js
    55 
    56   greenstone3-lod
    57   greenstone3-lod3
    58 
    59 FULL_GREENSTONE_URL_PREFIX=https://so-we-must-think.space/greenstone3/eurovision-library
    60 
    61 
    62 
    63 
    64 # Edit:
    65 
    66   siteConfig.xml
    67  
    68 
    69 # and then restart the GS3 server (from $GSDL3SRCHOME)
    70 
    71 ant restart
    72 
    73 
    74 # Build the collection 'eurovision'
    75 
    76 cd collect/eurovision
    77 
    78 ./IMPORT.sh
    79 
    80 ...
Note: See TracChangeset for help on using the changeset viewer.