This function starts the API server.
startup(port = read_secret("api.port"))
port number
For cron on UNIX (Linux/macOS), use the following command:
Rscript -e "certeapi::startup()" &>> /path/api.log &
Use Rscript --vanilla -e
to not load any user settings such as .Rprofile
. The trailing &
will make the script run in the background.