Skip to content

Commit

Permalink
Added deployment and run scripts (#138)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelZhao21 authored Sep 11, 2024
1 parent bad9586 commit 4e1bc48
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
target
.target
.env
*.env
data
.cargo
.vscode
server/tmp
server/tmp
5 changes: 5 additions & 0 deletions scripts/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

docker compose build
docker tag jury-main michaelzhao21/jury:latest
docker push michaelzhao21/jury:latest
6 changes: 6 additions & 0 deletions scripts/run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

docker pull michaelzhao21/jury
docker stop jury-main
docker run --rm -d --name jury-main --env-file ./jury.env -p 8080:8080 michaelzhao21/jury

0 comments on commit 4e1bc48

Please sign in to comment.