Returns an App object, created with the given config, that can start and stop the Solid server.
Keys of the variableBindings
object should be Components.js variables.
E.g.: { 'urn:solid-server:default:variable:rootFilePath': '.data' }
.
Components.js loader properties.
Path to the server config file.
Bindings of Components.js variables.
Returns an App object, created by parsing the Command line arguments, that can start and stop the Solid server. Will exit the process on failure.
Command line arguments.
Creates the Components Manager that will be used for instantiating.
Throws a new error that provides additional information through the extra message. Also appends the stack trace to the message. This is needed for errors that are thrown before the logger is created as we can't log those the standard way.
Handles the first Components.js instantiation, where CLI settings and variable mappings are created.
Starts the server with a given config.
This method can be used to start the server from within another JavaScript application.
Keys of the variableBindings
object should be Components.js variables.
E.g.: { 'urn:solid-server:default:variable:rootFilePath': '.data' }
.
Components.js loader properties.
Path to the server config file.
Parameters to pass into the VariableResolver.
Starts the server as a command-line application.
Command line arguments.
Starts the server as a command-line application. Will exit the process on failure.
Made non-async to lower the risk of unhandled promise rejections. This is only relevant when this is used to start as a Node.js application on its own, if you use this as part of your code you probably want to use the async version.
A class that can be used to instantiate and start a server based on a Component.js configuration.