July 1, 2020
You can't run database migrations manually when a Laravel app is in production. Instead, define a deploy hook in vapor.yml
:
# Not a full vapor.yml configuration
environments:
production:
deploy:
- 'php artisan migrate --force'
The --force
flag confirms that you're okay with running destructive migrations, such as deleting a column.
Vapor will run this command before the deployment is finalized, making any necessary changes to the production database.
Tufts Meal Plan Wrapped
Mar 2, 2024
Building an e-ink picture frame that displays an iCloud photo album
Jan 9, 2024
2023 in review
Jan 5, 2024
Subscribe to my newsletter for a monthly round-up of new blog posts and projects Iām working on!