Skip to content
This repository was archived by the owner on Aug 6, 2022. It is now read-only.

II.2. Server commands

Andrey Bogdanov edited this page Feb 24, 2016 · 13 revisions

quit or q

Quit the application (process.exit(0); is used).

help

Print brief command help.

set <path> [value]

Set a configuration option (current config file will be overwritten). If value is not specified, you will be prompted to enter it.

Example:

ololord.js> set system.workerCount 2
OK

get <path>

Print a configuration option.

Example:

ololord.js> get system.workerCount
Value for 'system.workerCount': 1

remove <path>

Remove a configuration option (current config file will be overwritten).

Example:

ololord.js> remove system.workerCount
OK

uptime

Show for how long the server has been running. The format is <days> <hours>:<minutes>:<seconds>.

Example:

ololord.js> uptime
0 days 19:12:55

add-superuser

Register a superuser. You will be prompted to enter a password or a password SHA-1 hash (recognized automatically), and then a list of IP addresses. These addresses are used to prevent the deletion of your posts by an administrator or a moderator (accidentally or intentionally).

Example:

ololord.js> add-superuser
Enter password: 
 *************

Enter superuser IP list (separate by spaces): 127.0.0.1 192.168.0.1
OK

remove-superuser

Removes a superuser from the databas. You will be prompted to enter a password or a password SHA-1 hash (recognized automatically).

Example:

ololord.js> remove-superuser
Enter password: 
 *************

OK

reload-templates

Closes all workers (existing connections are closed) and reloads the templates (including the template partials). After that, opens workers for connections again. Useful when you update some partials or add new one(s).

rerender-posts [board]

Closes all workers (existing connections are closed) and rerenders all posts. After that, regenerates the cache. Then opens workers for connections again. Useful when there have been changes in the parser and you want to update existing posts. If board is specified, only posts on this board will be rerendered.

stop

Closes all workers, preventing incoming connections. Existing connections are closed.

start

Opens workers for connections if closed.

regenerate

Closes all workers (existing connections are closed) and rerenders all posts. After that, regenerates the cache. Then opens workers for connections again. Useful when cache bugs are detected. It's easier to just restart the application, though.

rebuild-search-index

Rebuilds post search index. Useful if the index was corrupted due to editing DB manually, or some bug.

Clone this wiki locally