Skip to content

Commit

Permalink
Update the default to PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke committed Jun 18, 2020
1 parent 45e128e commit ed5a239
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
5 changes: 3 additions & 2 deletions .larasail/includes/help
Expand Up @@ -12,7 +12,8 @@ echo " larasail $arguments"
echo ""

echo "${Yellow}Arguments:${Color_Off}"
echo " ${Yellow}setup${Color_Off} Setup a new server with Nginx, PHP 7.3, and MySQL 5.7"
echo " ${Yellow}setup${Color_Off} Setup a new server with Nginx, PHP 7.4, and MySQL 5.7"
echo " ${Yellow}setup php73${Color_Off} Setup a new server with Nginx, PHP 7.3, and MySQL 5.7"
echo " ${Yellow}setup php72${Color_Off} Setup a new server with Nginx, PHP 7.2, and MySQL 5.7"
echo " ${Yellow}setup php71${Color_Off} Setup a new server with Nginx, PHP 7.1, and MySQL 5.7"
echo " ${Yellow}host${Color_Off} Create a new Nginx host"
Expand All @@ -21,4 +22,4 @@ echo " ${Yellow}pass${Color_Off} Display the larasail user passwo
echo " ${Yellow}mysqlpass${Color_Off}. Display the MySQL password"


#. /etc/.larasail/includes/colors
#. /etc/.larasail/includes/colors
6 changes: 4 additions & 2 deletions .larasail/setup
Expand Up @@ -12,9 +12,11 @@
. /etc/.larasail/includes/colors
. /etc/.larasail/includes/format

PHP="7.3"
PHP="7.4"

if [ "$1" = "php72" ]; then
if [ "$1" = "php73" ]; then
PHP="7.3"
elif [ "$1" = "php72" ]; then
PHP="7.2"
elif [ "$1" = "php71" ]; then
PHP="7.1"
Expand Down
3 changes: 2 additions & 1 deletion README.md
Expand Up @@ -32,11 +32,12 @@ larasail -h
larasail setup
```

The default configuration will install Nginx, PHP 7.3, and MySQL 5.7. If you wish to use PHP 7.1 or PHP 7.2, you can include the argument `php71`/`php72` like so:
The default configuration will install Nginx, PHP 7.4, and MySQL 5.7. If you wish to use PHP 7.1, PHP 7.2, or PHP 7.3, you can include the argument `php71`/`php72`/`php73` like so:

```
larasail setup php71 # Install with PHP 7.1
larasail setup php72 # Install with PHP 7.2
larasail setup php73 # Install with PHP 7.3
```

## Creating a New Site
Expand Down

0 comments on commit ed5a239

Please sign in to comment.