"Fossies" - the Fresh Open Source Software Archive

Member "daisy-2.4.2/applications/sync/README.txt" (14 Feb 2011, 1512 Bytes) of package /linux/www/old/daisy-2.4.2-src.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 The sync service is not included with Daisy,
    2 but is maintained as a standalone application which you must package yourself.
    3 (we simply did not implement the packaging step).
    4 
    5 Building
    6 --------
    7 Build the sync service using mvn install
    8 
    9 Packaging
   10 ---------
   11 *** TODO *** (solutions should involve generating tanuki wrapper conf, creating a repo dir, ...)
   12 
   13 Installing Sync
   14 ---------------
   15 
   16 Create the database
   17 mysql -u root
   18 
   19 In the mysql console create the database
   20 CREATE DATABASE syncstore CHARACTER SET 'utf8';
   21 GRANT ALL ON syncstore.* TO syncuser@'%' IDENTIFIED BY 'syncuser';
   22 GRANT ALL ON syncstore.* TO syncuser@localhost IDENTIFIED BY 'syncuser';
   23 
   24 Create the tables
   25 mysql -u root syncstore < $DAISY_HOME/extras/sync/misc/schema.sql
   26 
   27 Load initial data
   28 mysql -u root syncstore < $DAISY_HOME/extras/sync/misc/init-data.sql
   29 
   30 Create a sync.properties file and a mapping file. Put them in a directory, and point SYNC_CONF to that directory.
   31 (See the sample files under core/src/main/conf)
   32 
   33 (Optional) Installing the UI
   34 ----------------------------
   35 Copy the jar into daisy wiki :
   36 cp ui/target/daisy-sync-ui-2.0-dev.jar $DAISY_HOME/daisywiki/webapp/WEB-INF/lib
   37 
   38 Copy the wiki extension:
   39 cp $DAISY_HOME/extras/sync/wiki-ext <wikidata.dir>/sites/<site>/cocoon/sync
   40 
   41 Running Sync
   42 ------------
   43 set DAISY_JAVA_OPTIONS="-Dsync.conf=$SYNC_CONF"
   44 core/target/daisy-sync
   45 
   46 (Normally you would want to run sync as a service -- service scripts should be generated
   47 when building Daisy (so the classpath corresponds to the pom.xml)