Use API endpoint var as heartbeat endpoint.

This commit is contained in:
Lorenzo Stoakes 2014-09-30 19:13:33 +01:00 committed by Pablo Carranza Vélez
parent 77f5c776f5
commit 7866d7a9f7

View File

@ -9,9 +9,10 @@ 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'
config.heartbeatEndpoint = config.apiEndpoint + '/ping'
config.remoteImage = config.registryEndpoint + '/' + config.localImage
config.supervisorContainer =