Follow on with Setting Up Database.
For the Community Edition, you will need to delete the default datasource configuration file first before setting up the database: rm wflow/app_datasource.properties |
Familiarity with Terminal, the sudo
command, and the general concepts surrounding Launch Daemons and launchd is recommended.
These instructions assume that you placed Joget in /usr/local/joget
. If not, you'll need to change the Working Directory
key in the plist file shown below to match your own installation.
First, ensure that you have a working installation of Joget.
Then create /Library/LaunchDaemons/org.joget.plist
with the following content:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Disabled</key> <false/> <key>EnvironmentVariables</key> <dict> <key>JAVA_OPTS</key> <string>-XX:MaxPermSize=128m -Xmx512M -Dwflow.home=./wflow/</string> </dict> <key>Label</key> <string>local.job</string> <key>ProgramArguments</key> <array> <string>sh</string> <string>apache-tomcat-8.0.20/bin/catalina.sh</string> <string>run</string> </array> <key>RunAtLoad</key> <true/> <key>StandardErrorPath</key> <string>/tmp/local.job.stderr</string> <key>StandardOutPath</key> <string>/tmp/local.job.stdout</string> <key>WorkingDirectory</key> <string>/usr/local/joget/</string> </dict> </plist> |
Note: If you have no desire for logging, delete the StandardErrorPath
and StandardOutPath
key/value pairs.