Skip to content

Commit

Permalink
Merge pull request #155 from NiloCK/144-deployment-scripts
Browse files Browse the repository at this point in the history
#144 deploy via caddy api
  • Loading branch information
NiloCK authored Nov 26, 2021
2 parents 1dd4dc3 + 35ed499 commit dd0631b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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 "withCurlViaActions"
respond "withCurlViaActionsAgain"
}

handle {
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/deploy-caddyfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
echo "deploying updated Caddyfile in place of prior"
scp .deployment/Caddyfile ${{ secrets.DO_USERNAME }}@eduquilt.com:~/Caddyfile
echo "reloading the caddyfile"
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com curl localhost:2019/load \
ssh ${{ secrets.DO_USERNAME }}@eduquilt.com 'curl localhost:2019/load \
-X POST \
-H "Content-Type: text/caddyfile" \
--data-binary @Caddyfile
--data-binary @Caddyfile'

0 comments on commit dd0631b

Please sign in to comment.