Created
July 23, 2015 12:05
-
-
Save ysasaki/b746c4761ac7aa6c1055 to your computer and use it in GitHub Desktop.
Hot deploy php-fpm using Server::Starter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[global] | |
pid = /var/run/php-fpm/php-fpm.pid | |
error_log = /var/log/php-fpm/php-fpm-error_log | |
daemonize = no | |
[www] | |
listen = /var/run/php-fpm/php-fpm.sock | |
listen.backlog = 256 | |
listen.allowed_clients = 127.0.0.1 | |
listen.mode = 0660 | |
pm = dynamic | |
pm.max_children = 50 | |
pm.start_servers = 5 | |
pm.min_spare_servers = 5 | |
pm.max_spare_servers = 35 | |
slowlog = /var/log/php-fpm/slow_log | |
php_admin_value[error_log] = /var/log/php-fpm/error_log | |
php_admin_flag[log_errors] = on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
start_server --path=/var/run/php-fpm/php-fpm.sock \ | |
--interval=15 \ | |
--signal-on-hup=QUIT -- \ | |
sh -c 'FPM_SOCKETS=$SERVER_STARTER_PORT php-fpm -y php-fpm.conf' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment