Per host configuration for php-fpm restarting #2206
Replies: 8 comments 2 replies
-
When I check server overview I see
and when I go to symlink release I see
so it does not seem to go to release 1? But then when I do |
Beta Was this translation helpful? Give feedback.
-
Difficult to tell that is wrong. I use deployer with laravel, php 7.4 and cachetool all together just fine. It must be something with your setup. |
Beta Was this translation helpful? Give feedback.
-
@antonmedv Thanks, going to look into the upload function. Could not find documentation examples yet. I did read #2080 on same issue with empty So I would need to upload they private key from local hard disk and as I am using the git repository I do not think it works. Any suggestions for that keeping my current setup where I copy files form the Github repository? However copying the example environmental file to the main One more question I have.. |
Beta Was this translation helpful? Give feedback.
-
For copying the
thanks to @justijndepover at #1953 (comment) This I could run after I set the files up as shared with:
symlinking them. And I guess I should add this uploading before the actual deployment tasks that fail with these files being empty. I only want this done when .env is empty and or not there. Any pointers for that conditional setup? |
Beta Was this translation helpful? Give feedback.
-
I see I could use
I am also not sure if I can use this with |
Beta Was this translation helpful? Give feedback.
-
Perhaps this instead
|
Beta Was this translation helpful? Give feedback.
-
Just define per host: host('prod....')
->set('bin/php-fpm', '/etc/init.d/php7.4-fpm');
host('staging....')
->set('bin/php-fpm', '/etc/init.d/php7.3-fpm');
task('reload:php-fpm', function () {
run('sudo {{bin/php-fpm}} restart');
}); |
Beta Was this translation helpful? Give feedback.
-
Ohh.. never thought about that. That is a lot easier. Thank you very much for telling met @antonmedv ! |
Beta Was this translation helpful? Give feedback.
-
I am trying to deploy to a new DigitalOcean Ubuntu 20 server set up with Laravel Forge. It has PHP 7.4 and I did adjust our deploy.php to work with it and no longer PHP 7.3 for the opcache:
But I get this error:
Any ideas why?
P.S. dep --version Deployer v6.8.0
Beta Was this translation helpful? Give feedback.
All reactions