-
Notifications
You must be signed in to change notification settings - Fork 122
/
admin-help.txt
35 lines (29 loc) · 2.54 KB
/
admin-help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
THIS SCRIPT EXECUTES DANGEROUS COMMANDS. It expects, that 'mvn clean install -DskipTests' has been called!
Syntax: ./admin.sh <option-parameters> <command>
Option Parameter preceding the command are:
-git-mode set -db-mode, -db-parentdir, -db-name, -db-parentdir, -javalib-dir, -admin-dir, -static-resources
to values suitable for operating in the context of an openroberta-lab git repository.
-db-mode {server|embedded} mode in which the database should be accessed; default: embedded
-db-name <db-name> database name; default: openroberta-db; with a database server use openroberta-db-<server-name>
-db-parentdir <db-parentdir> database parent directory; default: db-embedded. Needed for creating an empty db.
-java-lib-dir <dir> directory with the installation dir (containing the jars); default: ./lib
-admin-dir <dir> directory for log, database backups, ...; default: ./admin
-static-resources <dir> directory with static resources (html, js, jpg, ...); default: ./staticResources
-Xmx heap memory, e.g. -Xmx4G; default is the java default
-rdbg enable remote debug using port 8000; default: no remote debug
-q quiet mode, default: verbose
-h | -help | --help show help message and quit
command:
sql-gui start a sql client with graphical user interface
sql-client read SELECT commands from the terminal and execute them
sql-exec <SQL> execute a single <SQL> command
create-empty-db create an empty database at <db-parentdir>/<db-name>
version print the server version (is suffixed with -SNAPSHOT if it is a snapshot) and terminate
start-server start the lab server with a data base in embedded mode. mvn must have run!
Use -d <key>=<value> to define any number of parameters for the server,
e.g. -d robot.crosscompiler.resourcebase=... for crosscompiler resources
the command terminates when the server terminates.
examples:
./admin.sh -git-mode create-empty-db call from the git root directory to create an embedded database in OpenRobertaServer
./admin.sh -git-mode sql-gui call from the git root directory to run a sql client. EXCLUSIVE USE OF THE DATABASE!
./admin.sh start-server call from the directory created by './ora.sh export' to start the server