Implement experimental IIPServer support
This commit is contained in:
parent
5d84301361
commit
10b93ddbe8
9 changed files with 51 additions and 4 deletions
|
|
@ -17,6 +17,7 @@ var Provision wisski_distillery.Command = pv{}
|
|||
|
||||
type pv struct {
|
||||
PHPVersion string `short:"p" long:"php" description:"specific php version to use for instance. Should be one of '8.0', '8.1'."`
|
||||
IIPServer bool `short:"i" long:"iip-server" description:"enable iip-server inside this instance"`
|
||||
OPCacheDevelopment bool `short:"o" long:"opcache-devel" description:"Include opcache development configuration"`
|
||||
Flavor string `short:"f" long:"flavor" description:"Use specific flavor. Use '--list-flavors' to list flavors. "`
|
||||
ListFlavors bool `short:"l" long:"list-flavors" description:"List all known flavors"`
|
||||
|
|
@ -65,6 +66,7 @@ func (p pv) Run(context wisski_distillery.Context) error {
|
|||
Flavor: p.Flavor,
|
||||
System: models.System{
|
||||
PHP: p.PHPVersion,
|
||||
IIPServer: p.IIPServer,
|
||||
OpCacheDevelopment: p.OPCacheDevelopment,
|
||||
ContentSecurityPolicy: p.ContentSecurityPolicy,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -20,7 +20,9 @@ type rebuild struct {
|
|||
|
||||
System bool `short:"s" long:"system-update" description:"Update the system configuration according to other flags"`
|
||||
PHPVersion string `short:"p" long:"php" description:"update to specific php version to use for instance. Should be one of '8.0', '8.1'."`
|
||||
IIPServer bool `short:"i" long:"iip-server" description:"enable iip-server inside this instance"`
|
||||
OPCacheDevelopment bool `short:"o" long:"opcache-devel" description:"Include opcache development configuration"`
|
||||
Flavor string `short:"f" long:"flavor" description:"Use specific flavor. Use 'provision --list-flavors' to list flavors. "`
|
||||
ContentSecurityPolicy string `short:"c" long:"content-security-policy" description:"Setup ContentSecurityPolicy"`
|
||||
|
||||
Positionals struct {
|
||||
|
|
@ -75,6 +77,7 @@ func (rb rebuild) Run(context wisski_distillery.Context) (err error) {
|
|||
if rb.System {
|
||||
sys = models.System{
|
||||
PHP: rb.PHPVersion,
|
||||
IIPServer: rb.IIPServer,
|
||||
OpCacheDevelopment: rb.OPCacheDevelopment,
|
||||
ContentSecurityPolicy: rb.ContentSecurityPolicy,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue