Skip to content

Commit

Permalink
[server] Use *.dill packaging instead of tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
AsturaPhoenix committed Jul 26, 2023
1 parent 92a0377 commit 0787694
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions .github/workflows/deploy_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 &'

0 comments on commit 0787694

Please sign in to comment.