Components

System Variables

System variables are part of the Phuct system and can be referenced by any component. System variables are always universally available in all phuct.sh provisioning files generated by the system. Some are automatically populated by the system and others require user input, but they are always available for you to use in your components if you need to, even if their value is empty!

IP Address

$ipaddress

Enter the IP address that the Vagrant box will use

Required

Regex: /(((1[0-9]{2})|(2[0-5]{2})|[0-9]{1,2})\.){3}(((1[0-9]{2})|(2[0-5]{2})|[0-9]{1,2}))/

Domain name

$domain

Enter the domain you wish to use e.g. myapp.dev. This does not need to be a registered domain, but to use it you will need to add it to your system's hosts file.

Required

name

$name

The name of this project

Required

description

$description

A description of your project

username

$username

User name

User ID

$user_id

user ID

Phuct Version

$version

Returns the current version of Phuct that generated the .sh file

Color red

$red

Red color

Color blue

$blue

Blue color

Color light blue

$lightblue

Light blue color

Color cyan

$cyan

Cyan color

Color light cyan

$lightcyan

Light cyan color

Color green

$green

Green color

Color light green

$lightgreen

Light green color

Color none

$nocolor

No color (back to default)

Public directory

$publicdirectory

If you want your public directory to be a directory within www, enter the directory name below e.g. public_html

Server

$server

This variable will contain the component variable of the server component that will be installed.

Server brand

$server_brand

This variable contains the brand of the server e.g. apache, nginx etc as defined by the component's author.

Operating system brand

$os_brand

The brand of the operating system e.g. centos,ubuntu etc. as defined by the component author.

Operating system bits

$os_bits

Contains the value "32" or "64" depending on the bit rate of the OS

Language brand

$language_brand

The brand of the main language being installed. E.g. php, perl, python etc. as defined by the module author

Database brand

$database_brand

The brand name of the main database system being installed e.g. mysql, mongo etc. as defined by the component author.

Framework brand

$framework_brand

The brand name of the framework being installed (empty if none) e.g. codeigniter, spring etc. as defined by the component author.

Application braand

$application_brand

The brand name of the application being installed (empty if none) e.g. wordpress etc. as defined by the component author.

Returns the name Phuct

$sysname

This system variable simply returns the name of the Phuct system.

Returns the URL of the Phuct web site

$sysurl

Simply contains the URL to phuct.org