Skip to content

Commit

Permalink
Remove custom php-fpm command, not required
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrjones committed May 7, 2024
1 parent 9e48e6c commit d3dda14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,15 @@ require 'contrib/php-fpm.php';
after('deploy', 'php-fpm:reload');
```

#### Hosting requirements

Please note the `deploy` user needs sudo permissions to run the PHP-FPM reload command.
This needs to be setup via Ansible for the hosting platform.

```
deploy ALL=(ALL) NOPASSWD:/usr/bin/systemctl reload php*-fpm
```

### Slack

Add the [Slack recipe](recipes/slack.md) to send notifications to a Slack channel on deployment.
Expand Down
3 changes: 0 additions & 3 deletions recipe/common.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
// Default web root
set('webroot', 'web');

// Command to reload PHP-FPM
set('php_fpm_command', 'sudo -n service {{php_fpm_service}} reload');

// Run pre-deployment checks
desc('Run pre-deployment checks');
task('deploy:pre-deploy-checks', [
Expand Down

0 comments on commit d3dda14

Please sign in to comment.