Skip to content

Remove 'Fetch All' button from journal management #35

Remove 'Fetch All' button from journal management

Remove 'Fetch All' button from journal management #35

Workflow file for this run

name: CV Deploy CI
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Deploy
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.DEPLOY_HOST }}
username: ${{ secrets.DEPLOY_USER }}
port: ${{ secrets.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_KEY }}
script: |
# nvm を読み込んで Node を使う
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm use 22
cd ${{ secrets.DEPLOY_DIR }}
# ローカルの変更を破棄してリモートを優先
git fetch origin
git reset --hard origin/main
git clean -fd
# セットアップ実行
sh setup.sh
# Webサーバー用パーミッション設定
# Bitnamiでは daemon, 一般的には www-data
WEB_USER="daemon"
if ! id "$WEB_USER" >/dev/null 2>&1; then
WEB_USER="www-data"
fi
sudo chown -R $WEB_USER:$WEB_USER storage bootstrap/cache
sudo chmod -R 777 storage bootstrap/cache