Laravel with PHP Deployer on Minikube DB: Migrate Fails #2360
Replies: 5 comments 1 reply
-
Try to use {{bin/php}} and specify path to php correctly via set('bin/php', 'path to php bin'); |
Beta Was this translation helpful? Give feedback.
-
@antonmedv going to look into using Is it correct that |
Beta Was this translation helpful? Give feedback.
-
These commands now work: // SMART CUSTOM DEPLOY COMMANDS
// new `run('{{bin/php}} {{release_path}}/artisan migrate --force');`
// old `run('cd {{release_path}} && php artisan migrate');`
task('db:migrate', function () {
run('{{bin/php}} {{release_path}}/artisan migrate --force');
});
task('horizon:terminate', function () {
run('{{bin/php}} {{release_path}}/artisan horizon:terminate');
});
task('queue:restart', function () {
run('{{bin/php}} {{release_path}}/artisan queue:restart');
}); now stuck at :
Again Think that is a separate and older recipe used in a different location these days. Need to see how I can remedy this and then the reloading of php fpm and then I should be good to go for Minikube. |
Beta Was this translation helpful? Give feedback.
-
Wonder how I could use require 'vendor/deployer/recipes/recipe/cachetool.php'; in the new setup @antonmedv . It is loaded differently with recipes differently set up now is it not? |
Beta Was this translation helpful? Give feedback.
-
Read at an old thread of mine #2200 that you can use |
Beta Was this translation helpful? Give feedback.
-
Running PHP Deployer on Minikube Kubernetes locally - see https://github.com/smart48/smt-demo - and getting
php artisan runs well except for php artisan migrate where command cannot be found for some reason:
Seems it does not use my adjusted path within the container. Or at least not properly.. Or it should in this case not run the Minikube Vm path but the container path...
Using this deploy.php now
Any ideas how I can get migrations to play nice as well?
Really far now and already have:
and all including vendor file:
Probably need to upgrade these command as well to run inside the container:
Not sure yet how to do this well in the run commands.
Beta Was this translation helpful? Give feedback.
All reactions