diff --git a/README.md b/README.md index c98c8e8..8648f88 100644 --- a/README.md +++ b/README.md @@ -66,6 +66,42 @@ Divvy Client Spreaded Over Intranet having a intranet IP, finds other DivvyClien cd /path/to/DivvyDistribution/ bash bin.sh -run +### Usage + +- DivvyHost is supposed to be started at boottime. To manually start the service use +``` +divvy start +``` + +- To make UI visible at any point time +``` +divvy -show +``` + +- Create new project + - ![Project Init](./images/snap_controller.png) + +- Project List + - ![Project List Page](./images/snap_project.png) + +- Update Project Content + - Goto `/path/to/divvy/Hosted/3b3b1fce-5118-46a3-a0a3-54f733242d51` (For ex. `~/Divvy/Hosted/3b3b1fce-5118-46a3-a0a3-54f733242d51`) + - Host HTML website in current directory + - From UI, select the project and `PULL` it. + +- Web Hosting + - Goto 'http://mydivvyserverip:9999' and see website hosted. + - ![Web Hosting](./images/snap_web.png) + +- Project List with keep on syncing with other divvyhost server within the network. +- Configurations can be edited from `/path/to/divvy/Conf/conf.properties` +``` +#Sample Divvy Host Configuration +#Tue Mar 13 15:12:31 IST 2018 +MAX_SIZE_ON_DISK_MB=200 +INTERNAL_IP=172.16.156.0/24,127.0.0.1/31 +``` + diff --git a/images/snap_controller.png b/images/snap_controller.png new file mode 100644 index 0000000..5b6d974 Binary files /dev/null and b/images/snap_controller.png differ diff --git a/images/snap_project.png b/images/snap_project.png new file mode 100644 index 0000000..6abbbeb Binary files /dev/null and b/images/snap_project.png differ diff --git a/images/snap_web.png b/images/snap_web.png new file mode 100644 index 0000000..33c2c1a Binary files /dev/null and b/images/snap_web.png differ diff --git a/wrapper/bin.cmd b/wrapper/bin.cmd index 79ce743..5578dc9 100644 --- a/wrapper/bin.cmd +++ b/wrapper/bin.cmd @@ -119,17 +119,11 @@ goto installContinue mkdir %INSTALLDIR% > NUL 2>&1 if %ERRORLEVEL%==0 echo Directory Created %INSTALLDIR% - mkdir %INSTALLDIR%\lib > NUL 2>&1 copy /Y %BASEDIR% %INSTALLDIR% if not %ERRORLEVEL%==0 ( echo Unable to Copy from %BASEDIR% to %INSTALLDIR% EXIT 1 ) - copy /Y %BASEDIR%\lib %INSTALLDIR%\lib - if not %ERRORLEVEL%==0 ( - echo Unable to Copy from %BASEDIR%\lib to %INSTALLDIR%\lib - EXIT 1 - ) call:createAutoStart diff --git a/wrapper/bin.sh b/wrapper/bin.sh index 39f0dab..a1adf57 100755 --- a/wrapper/bin.sh +++ b/wrapper/bin.sh @@ -74,8 +74,7 @@ function _help { # Start DivvyHost function start { pushd $BASEDIR; - nohup java -jar "$JAR_FILE" -nogui &> $LOG_FILE & - echo $! > $PID_FILE; + nohup java -jar "$JAR_FILE" -nogui &> $LOG_FILE & echo $! > $PID_FILE; popd echo "DivvyHost Started Called" } @@ -103,7 +102,7 @@ function install { sed "s|^: ;BASEDIR.*|: ;BASEDIR\=$HOME/Divvy|g" < "$BASEDIR/bin.sh" > "$HOME/Divvy/bin.sh" chmod +x "$HOME/Divvy/bin.sh" - cp -r "$BASEDIR/lib/" "$HOME/Divvy/" + cp -r "$BASEDIR/Conf" "$HOME/Divvy/" 2> /dev/null cp "$BASEDIR/$JAR_FILE" "$HOME/Divvy/DivvyHost.jar" createAutoStart;