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'); |
|
@antonmedv going to look into using Is it correct that |
|
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. |
|
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? |
|
Read at an old thread of mine #2200 that you can use |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions