From 07876941a9ad6905f378e936e1d78afdfba6f28c Mon Sep 17 00:00:00 2001 From: Ross Wang Date: Tue, 25 Jul 2023 21:58:48 -0700 Subject: [PATCH] [server] Use *.dill packaging instead of tarball --- .github/workflows/deploy_alpha.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/deploy_alpha.yml b/.github/workflows/deploy_alpha.yml index 24b9470..c99214b 100644 --- a/.github/workflows/deploy_alpha.yml +++ b/.github/workflows/deploy_alpha.yml @@ -24,8 +24,7 @@ jobs: - name: Package web build run: cd build && tar --create -f web.tar.gz web - - name: Package server - run: tar --create -f server.tar.gz server util latlng + - run: dart compile kernel server/bin/main.dart - name: Set up SSH run: | @@ -46,14 +45,11 @@ jobs: rm web.tar.gz' - name: Transfer server - run: 'scp server.tar.gz imagipioneer@${{ vars.ALPHA_IP }}:aquamarine_server' - - name: Unpack and flip + run: 'scp server/bin/main.dill imagipioneer@${{ vars.ALPHA_IP }}:aquamarine_server' + - name: Migrate and flip run: | ssh imagipioneer@${{ vars.ALPHA_IP }} ' cd aquamarine_server && - tar --overwrite -xvf server.tar.gz && - rm server.tar.gz && - cd server && - dart pub get && killall dart:main.dart ; - dart bin/main.dart >>log 2>>err &' + mv server/persistence persistence ; + dart main.dill >>log 2>>err &'