Skip to content

Merge pull request #485 from ckrack/fix/orm-lazy-ghost-readonly #18

Merge pull request #485 from ckrack/fix/orm-lazy-ghost-readonly

Merge pull request #485 from ckrack/fix/orm-lazy-ghost-readonly #18

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Push to server
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
key: ${{ secrets.SSH_KEY }}
passphrase: ${{ secrets.SSH_PASS }}
script_stop: true
script: |
cd ${{ secrets.PROJECT_PATH}}
git reset --hard
git clean -df
git pull
source .env
source .env.local
export APP_ENV=prod
composer install --no-dev -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist -o
composer dump-env prod
yarn install
yarn encore production
export APP_DEBUG=0
export PWD=$(pwd)
envsubst < config/supervisor/hydro-tcp-server.ini > ~/etc/services.d/hydro-tcp-server.ini
supervisorctl reread
supervisorctl update
supervisorctl restart all
php bin/console doctrine:migrations:migrate --no-interaction
php bin/console cache:clear