You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
there is a hidden json sync file that gets added to your server when you run this action. If you make manual changes on your files and this becomes out of sync with git I think it begins to throw errors. All you have to do is delete the hidden sync file and run the action.
`name: 🚀 Deploy website on push
on:
push:
branches:
- main
jobs:
web-deploy:
name: 🎉 Deploy
runs-on: ubuntu-latest
env:
LARAVEL_BYPASS_ENV_CHECK: 1 # Set the environment variable
steps:
# - name: Get the latest code
- name: 🚚 Get latest code
uses: actions/checkout@v4
# uses: actions/checkout@v4
# uses: actions/checkout@v2.3.2
- uses: actions/setup-node@master
- name: Copy .env
run: php -r "file_exists('.env') || copy('.env.example', '.env');"
- name: Set DB_DATABASE, DB_USERNAME, and DB_PASSWORD
run: |
sed -i "s/DB_DATABASE=./DB_DATABASE=${{ secrets.DB_DATABASE }}/" .env
sed -i "s/DB_USERNAME=./DB_USERNAME=${{ secrets.DB_USERNAME }}/" .env
sed -i "s/DB_PASSWORD=./DB_PASSWORD=${{ secrets.DB_PASSWORD }}/" .env
sed -i "s/APP_ENV=./APP_ENV=production/" .env
sed -i "s/APP_DEBUG=.*/APP_DEBUG=false/" .env
`
The text was updated successfully, but these errors were encountered: