Configure PostgreSQL host and run migrations
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 48s
All checks were successful
Setup EC2 Tools / setup-server (push) Successful in 48s
This commit is contained in:
parent
5fec3336c3
commit
3391c0b057
1 changed files with 6 additions and 0 deletions
|
|
@ -83,9 +83,15 @@ jobs:
|
|||
php artisan key:generate --force
|
||||
fi
|
||||
|
||||
# Configure Database connection
|
||||
sed -i 's/DB_HOST=127.0.0.1/DB_HOST=16.113.106.152/g' .env
|
||||
|
||||
# Ensure web server owns the files after composer finishes writing caches
|
||||
sudo chown -R www-data:www-data storage bootstrap/cache
|
||||
|
||||
# Run database migrations
|
||||
php artisan migrate --force
|
||||
|
||||
# Temporarily enable debug mode to see exactly why it is failing!
|
||||
sed -i 's/APP_DEBUG=false/APP_DEBUG=true/g' .env
|
||||
sed -i 's/APP_ENV=production/APP_ENV=local/g' .env
|
||||
|
|
|
|||
Loading…
Reference in a new issue