Skip to content

Commit

Permalink
docs update for request context
Browse files Browse the repository at this point in the history
  • Loading branch information
gqcn committed Nov 23, 2024
1 parent 3112661 commit fe44d2b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,17 @@ jobs:
make build
# https://github.com/appleboy/scp-action
- name: Deploy to main domain server
uses: appleboy/[email protected]
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USERNAME }}
password: ${{ secrets.SSH_PASSWORD }}
port: ${{ secrets.SSH_PORT }}
source: './build/*'
target: '/home/www/goframe.org'
strip_components: 1
rm: true
# - name: Deploy to main domain server
# uses: appleboy/[email protected]
# with:
# host: ${{ secrets.SSH_HOST }}
# username: ${{ secrets.SSH_USERNAME }}
# password: ${{ secrets.SSH_PASSWORD }}
# port: ${{ secrets.SSH_PORT }}
# source: './build/*'
# target: '/home/www/goframe.org'
# strip_components: 1
# rm: true

- name: Deploy to github pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ func main() {

执行后,访问 [http://127.0.0.1:8199/](http://127.0.0.1:8199/) ,页面输出内容为:

```HBm876TFCde435Tgf
```text
HBm876TFCde435Tgf
```

### 示例2, `SetCtx`
Expand Down Expand Up @@ -106,5 +107,6 @@ func main() {

执行后,访问 [http://127.0.0.1:8199/](http://127.0.0.1:8199/) ,页面输出内容为:

```HBm876TFCde435Tgf
```text
HBm876TFCde435Tgf
```

0 comments on commit fe44d2b

Please sign in to comment.