Skip to content

Commit

Permalink
#144 deploy via caddy api
Browse files Browse the repository at this point in the history
  • Loading branch information
NiloCK committed Nov 26, 2021
1 parent 2948c6a commit a8f5558
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .deployment/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ eduquilt.com {
}

handle_path /testpath {
respond "lastOne"
respond "withCurlViaActions"
}

handle {
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/deploy-caddyfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
- run: |
echo "deploying updated Caddyfile in place of prior"
scp .deployment/Caddyfile ${{ secrets.DO_USERNAME }}@eduquilt.com:~/Caddyfile
echo "restarting the caddy service"
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com
caddy reload &
echo "reloading the caddyfile"
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com curl localhost:2019/load \
-X POST \
-H "Content-Type: text/caddyfile" \
--data-binary @Caddyfile

0 comments on commit a8f5558

Please sign in to comment.