Allow configuration of heartbeat endpoint via env var.

This commit is contained in:
Lorenzo Stoakes 2014-09-30 19:07:37 +01:00 committed by Pablo Carranza Vélez
parent 8ce9c2448f
commit 77f5c776f5

View File

@ -9,8 +9,8 @@ module.exports = config =
localImage: process.env.SUPERVISOR_IMAGE ? 'resin/rpi-supervisor'
configMountPoint: process.env.CONFIG_MOUNT_POINT ? '/mnt/mmcblk0p1/config.json'
ledFile: process.env.LED_FILE ? '/sys/class/leds/led0/brightness'
heartbeatEndpoint: process.env.HEARTBEAT_ENDPOINT ? 'http://image.resin.io/ping'
successMessage: 'SUPERVISOR OK'
heartbeatEndpoint: 'http://image.resin.io/ping'
config.remoteImage = config.registryEndpoint + '/' + config.localImage