Repos / pytaku / d95838e032
commit d95838e03294e63a74eb80c2505c6371f3b46498
Author: Bùi Thành Nhân <hi@imnhan.com>
Date:   Mon Aug 10 23:28:31 2020 +0700

    fix deploy commands
    
    - ~/.local/bin wouldn't be in PATH so pytaku-migrate would fail.
    - Added `&&` to short circuit in case of errors.

diff --git a/.builds/ubuntu.yml b/.builds/ubuntu.yml
index e698abf..207c7cb 100644
--- a/.builds/ubuntu.yml
+++ b/.builds/ubuntu.yml
@@ -63,12 +63,12 @@ tasks:
       scp -i ~/.ssh/2d6e3246-5adc-41c2-bebe-01dacda9d0c8 contrib/systemd/*.service pytaku@dev.pytaku.com:/home/pytaku/.config/systemd/user/
       # Install & restart serivces
       ssh -i ~/.ssh/2d6e3246-5adc-41c2-bebe-01dacda9d0c8 pytaku@dev.pytaku.com "
-        ~/.local/bin/pip install --user pytaku*.whl
-        cd ~/pytaku
-        pytaku-migrate
-        systemctl --user daemon-reload
-        systemctl --user restart pytaku
-        systemctl --user restart pytaku-scheduler
-        rm pytaku*.whl
+        ~/.local/bin/pip install --user pytaku*.whl &&
+        cd ~/pytaku &&
+        ~/.local/bin/pytaku-migrate &&
+        systemctl --user daemon-reload &&
+        systemctl --user restart pytaku &&
+        systemctl --user restart pytaku-scheduler &&
+        rm pytaku*.whl &&
         echo 'All done.'
       "
diff --git a/pyproject.toml b/pyproject.toml
index 990b9a9..39a4dee 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
 [tool.poetry]
 name = "pytaku"
-version = "0.2.14"
+version = "0.2.15"
 description = ""
 authors = ["Bùi Thành Nhân <hi@imnhan.com>"]
 license = "AGPL-3.0-only"