From d98bcc16329f8a6fc15aa61a4e38ea690adab201 Mon Sep 17 00:00:00 2001 From: Johannes Innerbichler Date: Fri, 26 Jan 2018 03:46:19 +0100 Subject: [PATCH] worked on deployment --- docker-compose.yml | 4 ++-- env | 0 fabfile.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 env diff --git a/docker-compose.yml b/docker-compose.yml index 88d7132..c6adb8b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,8 +9,8 @@ services: image: homeassistant/home-assistant:0.61.1 environment: - "TZ=Europe/Berlin" - - "COFFEE_FLASH_BASE_URL=http://flash-home.duckdns.org:3000/" - - "PROVIDER_FLASH_BASE_URL=http://flash-home.duckdns.org:3001/" + env_file: + - env ports: - 80:8123 # Home Assistant - 1883:1883 # MQTT diff --git a/env b/env new file mode 100644 index 0000000..e69de29 diff --git a/fabfile.py b/fabfile.py index 26492ae..a4162d1 100644 --- a/fabfile.py +++ b/fabfile.py @@ -9,8 +9,8 @@ def deploy(): with cd('/srv/flash-home'): run('git pull origin master') - run('echo "COFFEE_FLASH_BASE_URL=http://flash-home.duckdns.org:3000/" > .env') - run('echo "PROVIDER_FLASH_BASE_URL=http://flash-home.duckdns.org:3001/" >> .env') + run('echo "COFFEE_FLASH_BASE_URL=http://flash-home.duckdns.org:3000/" > env') + run('echo "PROVIDER_FLASH_BASE_URL=http://flash-home.duckdns.org:3001/" >> env') run('docker-compose --project-name flash-home pull') run('docker-compose --project-name flash-home up -d --build --force-recreate')