I just started working with App Platform and I am unsure which commands I should be adding in Run vs Build steps.
I am deploying a Laravel App and I need to run DB migrations, route caching, & config caching.
php artisan migrate --force # Clear caches php artisan cache:clear # Clear expired password reset tokens php artisan auth:clear-resets # Clear and cache routes php artisan route:cache # Clear and cache config php artisan config:cache # Clear and cache views php artisan view:cache
Should these be Build Commands after my composer install or should they be Run Commands before I run heroky-php-apahce2?
Or does it matter?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.