|
Running Two Instances Of Dekoh Desktop
Running two instances of Dekoh Desktop on your machineDevelopers run two instances of Dekoh on their desktop to:
How do I run two instances of Dekoh Desktop on my machine?Install Dekoh Desktop, rename it, and change the port. Then install another Dekoh Desktop as the second instance. Setting up the first instance of Dekoh DesktopTo set up the first instance of Dekoh Desktop:
For Windows users only: Open DekohLive/server/bin/dekoh.vmoptions and change the value of -DinstallDir to point to the DekohLive location. For example, -DinstallDir=C:\DekohLive. Make the same change in DekohLive/server/bin/dekoh-service.vmoptions. Now that you have your DekohLive instance set up for friends to share with, set up your developer instance of Dekoh. Setting up the second instance of Dekoh DesktopTo set up the second instance of Dekoh Desktop:
Your development instance is up now! Note that this is separate from the other instance that you will be running (DekohLive) and changes to this instance are not reflected in the other and vice versa. For Linux users only: Go to your user home directory and modify dekoh.sh so that the paths inside point to DekohLive. For example, after modification your dekoh.sh will look like this: #!/bin/sh cd /home/barc/DekohLive/server/bin LIB_DIR=../lib CLASSPATH=$LIB_DIR/pramati/classpath.jar export LIB_DIR export CLASSPATH /root/jdk1.5.0_06/jre/bin/java -DinstallDir=/home/barc/DekohLive com.pramati.bfly.install.BaseInitializer Note: The paths will differ on your system. For Mac users only: Go to DekohLive/server/bin and modify dekoh.sh so that the paths inside point to DekohLive. For example, after modification your dekoh.sh will look like this: #!/bin/sh cd /home/barc/DekohLive/server/bin LIB_DIR=../lib CLASSPATH=$LIB_DIR/pramati/classpath.jar export LIB_DIR export CLASSPATH /root/jdk1.5.0_06/jre/bin/java -DinstallDir=/home/barc/DekohLive com.pramati.bfly.install.BaseInitializer Note: The paths will differ on your system. Starting the first instanceLet us start your DekohLive instance now. For Linux users: To start DekohLive, run the script /yourhomedirectory/dekoh.sh For Mac users: To start DekohLive, run the script DekohLive/server/bin/dekoh.sh For Windows users: To start DekohLive, use the following steps. These steps ensure that your DekohLive instance will always start up automatically as a Windows service during Windows bootup. Note that the shortcut on your desktop will not point to DekohLive because you renamed your Dekoh directory.
You can access DekohLive instance by pointing your browser to http://localhost:<port>/dekohportal, where port is the port you changed earlier for your live instance. The dev instance is already started. You can access it in the following ways:
Both instances of Dekoh should be running and accessible now. Starting the second instanceYou can start the Dekoh dev instance by going to Dekoh/server/bin and running dekoh_shell.bat or dekoh_shell.sh. This depends on your OS. Typing shutdown on the command prompt LWT> shuts down your Dekoh dev instance. Troubleshooting
|