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

I.5. Launching

Andrey Bogdanov edited this page Apr 16, 2016 · 11 revisions

Launching and quiting

Launching ololord.js is pretty simple:

./app.js

Normally, there will be some output on the startup, and the command prompt will be shown:

[17662] Using config file: "/home/username/dev/js/projects/ololord.js/config.json"...
Generating JSON cache, please, wait...
Generating HTML cache, please, wait...
Generating RSS, please, wait...
Spawning workers, please, wait...
[17677] Using config file: "/home/username/dev/js/projects/ololord.js/config.json"...
[17677] Initializing...
[17677] Listening on port 8080...
Type 'help' for commands
ololord.js>

To quit the application, you may either type:

quit

or:

q

or press Ctrl+C (the latter is not recommended).

Generating cache

When you launch ololord.js for the first time, you will have to pass the --regenerate option to generate the HTML/JSON cache.

./app.js --regenerate

or

./app.js -r

Specifying configuration file

By default, the ./config.json configuration file is used. You may specify any other configuration file using the -c or --config-file command line options. The path may be relative:

./app.js -c ./custom-config.json

or absolute:

./app.js --config-file /etc/config/ololord.js/custom-config.json

If the file specified does not exist, the very default configuration will be used (the application may not even be accessible with a browser in that case). See also: I.4. Basic configuration and II.1. Configuration.

Clone this wiki locally