Merge pull request #30 from Yunnie-pin/dev #43
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: remote ssh command | |
on: | |
push: | |
branches: [ "main" ] | |
jobs: | |
deploytolive: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Refresh Laravel app | |
uses: appleboy/ssh-action@master | |
with: | |
host: ${{ secrets.SSH_HOST }} | |
username: ${{ secrets.SSH_USERNAME }} | |
port: ${{ secrets.SSH_PORT }} | |
password: ${{ secrets.SSH_PASS }} | |
script: | | |
cd /home/gulagulali/project/Laborat-Klinik-Web | |
git pull | |
sudo pm2 stop laravel-app | |
php artisan migrate:fresh --seed | |
sudo pm2 start laravel-app |