startup: Start API

View source: R/init.R

startupR Documentation

Start API

Description

This function starts the API server.

Usage

startup(port = read_secret("api.port"))

Arguments

port

port number

Details

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.


certe-medical-epidemiology/certeapi documentation built on April 20, 2024, 1:02 p.m.