Skip to content

Commit

Permalink
Revert "[server] Use *.dill packaging instead of tarball"
Browse files Browse the repository at this point in the history
This reverts commit 0787694.

Dills are not portable across different Dart VM versions.
  • Loading branch information
AsturaPhoenix committed Jul 26, 2023
1 parent 17f8755 commit 409c6b6
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
- name: Package web build
run: cd build && tar --create -f web.tar.gz web

- run: dart compile kernel server/bin/main.dart
- name: Package server
run: tar --create -f server.tar.gz server util latlng

- name: Set up SSH
run: |
Expand All @@ -45,11 +46,14 @@ jobs:
rm web.tar.gz'
- name: Transfer server
run: 'scp server/bin/main.dill imagipioneer@${{ vars.ALPHA_IP }}:aquamarine_server'
- name: Migrate and flip
run: 'scp server.tar.gz imagipioneer@${{ vars.ALPHA_IP }}:aquamarine_server'
- name: Unpack 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 ;
mv server/persistence persistence ;
dart main.dill >>log 2>>err &'
dart bin/main.dart >>log 2>>err &'

0 comments on commit 409c6b6

Please sign in to comment.