Skip to content

Commit

Permalink
test migrate on push
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Feb 22, 2024
1 parent 8910983 commit 21015d4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
echo "APP_URL=http://habittracker-uc-1.eba-ayudv8jf.ap-southeast-2.elasticbeanstalk.com" >> .env
echo "DB_HOST=${{ secrets.DB_HOST}}" >> .env
echo "DB_PORT=3306" >> .env
echo "DB_DATABASE=${{ secrets.DB_DATABASE}}" >> .env
echo "DB_DATABASE=habit-tracker" >> .env
echo "DB_USERNAME=${{ secrets.DB_USERNAME}}" >> .env
echo "DB_PASSWORD=${{ secrets.DB_PASSWORD}}" >> .env
Expand Down
13 changes: 13 additions & 0 deletions .platform/hooks/predeploy/predeploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

cd /var/www/html/

sudo chmod -R 775 storage

php artisan migrate:fresh

php artisan cache:clear
php artisan config:clear
php artisan view:clear
php artisan route:clear
php artisan config:cache

0 comments on commit 21015d4

Please sign in to comment.