FastHandle is fast operation tools for infrastructure configurations and tests.
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
languages:php:index.html [2018/02/26 00:30] kurihara ↷ Page moved from fabric:languages:php:index.html to languages:php:index.html |
languages:php:index.html [2018/03/04 00:33] kurihara [php.py] |
||
---|---|---|---|
Line 10: | Line 10: | ||
===== PHP Operation ===== | ===== PHP Operation ===== | ||
+ | ==== Fabric one-line Task Examples ==== | ||
+ | |||
<sxh bash toolbar: | <sxh bash toolbar: | ||
- | $ fab -l |grep php | + | $ fab -l |grep -F php. |
</ | </ | ||
Line 17: | Line 19: | ||
$ fab -H $H auth.pro | $ fab -H $H auth.pro | ||
</ | </ | ||
+ | |||
+ | |||
+ | ==== Fabric one-line Task Examples ==== | ||
<sxh bash toolbar: | <sxh bash toolbar: | ||
Line 61: | Line 66: | ||
sudo(" | sudo(" | ||
+ | |||
+ | ## CentOS7 ## | ||
+ | @task | ||
+ | def install_php5.6_centos7(): | ||
+ | sudo(" | ||
+ | sudo(" | ||
+ | |||
+ | @task | ||
+ | def install_php7.0_centos7(): | ||
+ | sudo(" | ||
+ | sudo(" | ||
+ | |||
+ | @task | ||
+ | def install_php7.1_centos7(): | ||
+ | sudo(" | ||
+ | sudo(" | ||
+ | run(" | ||
+ | run(" | ||
+ | |||
+ | |||
+ | ## CentOS6 ## | ||
+ | @task | ||
+ | def install_php5.6_centos6(): | ||
+ | sudo(" | ||
+ | sudo(" | ||
+ | |||
+ | @task | ||
+ | def install_php7.0_centos6(): | ||
+ | sudo(" | ||
+ | sudo(" | ||
+ | |||
+ | @task | ||
+ | def install_php7.1_centos6(): | ||
+ | sudo(" | ||
+ | sudo(" | ||
+ | run(" | ||
+ | run(" | ||
</ | </ |
My Sites
SNS
Copyright (c) 2024 FastHandle - IT Operations Examples All Rights Reserved.