Skip to content

Commit 29ee96f

Browse files
committed
[Fix] デプロイの問題の修正
1 parent 5e5f916 commit 29ee96f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: .github/workflows/push.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,9 @@ jobs:
8282
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
8383
- name: deploy with lftp
8484
if: github.ref == 'refs/heads/master'
85-
run: lftp -e "set net:max-retries 1; set sftp:connect-program \"ssh -a -x -p $SSH_PORT -i .ssh/id_rsa -o StrictHostKeyChecking=no\"; connect sftp://$SSH_USER:@$SSH_HOST; mirror -eR -x .git -x .ssh ./public $SSH_DIR; quit"
85+
run: lftp -e "set net:max-retries 1; set sftp:connect-program \"ssh -a -x -p $SSH_PORT -i .ssh/id_rsa -o StrictHostKeyChecking=no\"; connect sftp://$SSH_USER:@$SSH_HOST; mirror --delete --only-newer -eR -x .git -x .ssh ./public $SSH_DIR; quit"
8686
env:
87-
SSH_PORT: 8022
87+
SSH_PORT: 22
8888
SSH_USER: shinkan-web
8989
SSH_HOST: www.stb.tsukuba.ac.jp
9090
SSH_DIR: ~/public_html/

Diff for: gatsby-config.js

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
description: `筑波大学内の学生団体情報ポータルサイトです。`,
77
author: `@tsukuba_shinkan`,
88
},
9+
pathPrefix: process.env.PATH_PREFIX || `/`,
910
plugins: [
1011
`gatsby-plugin-sass`,
1112
`gatsby-plugin-react-helmet`,

0 commit comments

Comments
 (0)