Skip to main content

Installation

Thermostat is self-hosting in that Thermostat is itself a Thermostat application. This means you can easily deploy the Thermostat API by running thermostat deploy fahrenheit/thermostat production. However in order for this to work you need to already have a Thermostat API running that has access to backup files for the Thermostat API, therefore some bootstrapping is required to install the server if no other Thermostat API server is available.

Bootstrapping

You can bootstrap a Thermostat API server using thermostat init. Clone the Thermostat code repository into the code folder using git clone git@gitlab.com:fahrenheit/thermostat/thermostat.git code. Then create the API data folder using mkdir -p data/api and create Postgres data folder using mkdir -p data/postgres. Then initalize the application using with_ssh_agent thermostat init fahrenheit/thermostat production.