-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Go back to stopping the service before upgrading
- Loading branch information
1 parent
fa5ca34
commit 65fabeb
Showing
1 changed file
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,13 +37,14 @@ jobs: | |
run: "cd frontend && trunk build --release" | ||
- name: Optimise wasm | ||
run: "cd frontend/dist && ../../binaryen-version_116/bin/wasm-opt -Oz -o opt.wasm $(ls frontend*.wasm) && mv ./opt.wasm $(ls frontend*.wasm)" | ||
- name: Remove old files | ||
- name: Stop currently-running backend | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.SERVER_HOST }} | ||
username: ${{ secrets.SERVER_USERNAME }} | ||
key: ${{ secrets.SERVER_SSH_KEY }} | ||
script: | | ||
sudo /usr/bin/systemctl stop itsjunetime.service | ||
rm /home/junkie/server_files/frontend* 2>/dev/null || : | ||
- name: SCP files | ||
uses: appleboy/[email protected] | ||
|
@@ -63,5 +64,5 @@ jobs: | |
key: ${{ secrets.SERVER_SSH_KEY }} | ||
script: | | ||
sudo /usr/bin/systemctl daemon-reload | ||
sudo /usr/bin/systemctl restart itsjunetime.service | ||
sudo /usr/bin/systemctl start itsjunetime.service | ||
sudo /usr/sbin/nginx -s reload |