Skip to content

Commit

Permalink
Updated the boxes used for DevBox
Browse files Browse the repository at this point in the history
  • Loading branch information
damianlewis committed Oct 23, 2018
1 parent 15bd249 commit 3d54cd3
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 12 deletions.
17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ folders:


#### Ubuntu
By default, DevBox uses Ubuntu 16.04. To use a different version, add the `ubuntu` property. Supported versions are `14.04` and `16.04`.
By default, DevBox uses Ubuntu 16.04. To use a different version, add the `ubuntu` property. Supported versions are `14.04` and `16.04`.
```yaml
ubuntu: "14.04"
```


#### Webserver
By default, DevBox uses Nginx as the web server. To use a different web server, add the `webserver` property. Supported servers are `nginx` and `apache`.
By default, DevBox uses Nginx as the web server. To use a different web server, add the `webserver` property. Supported servers are `nginx` and `apache`.
```yaml
webserver: apache
```
Expand Down Expand Up @@ -123,17 +123,17 @@ sites:
```
**Note**: PHP version 5.5 is also supported for legacy systems. Add `5` to the `php` sites property.

The url must be added to your machines `hosts` file. Example:
The url must be added to your machines `hosts` file. Example:
```
192.168.22.18 site1.test
192.168.22.18 site2.test
```

A self-signed SSL certificate is created for each site, so sites can be accessed via HTTP and HTTPS.
A self-signed SSL certificate is created for each site, so sites can be accessed via HTTP and HTTPS.


#### MySQL
By default, DevBox uses MySQL 5.7. To install an alternative version, add the `mysql` property. Supported versions are `5.5`, `5.6` and `5.7`.
By default, DevBox uses MySQL 5.7. To install an alternative version, add the `mysql` property. Supported versions are `5.5`, `5.6` and `5.7`.
```yaml
mysql: "5.5"
```
Expand Down Expand Up @@ -177,8 +177,5 @@ A number of default bash aliases are created for the VM. These can be found in t

### Other software included
- Git
- NVM and Node with the following global packages:
- Bower
- Grunt
- Gulp
- Yarn
- NVM and Node
- Yarn
6 changes: 5 additions & 1 deletion scripts/serve-apache
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ block="<VirtualHost *:80>

echo "$block" > "/etc/apache2/sites-available/$hostname.conf"

a2enmod proxy proxy_fcgi ssl > /dev/null 2>&1

a2dissite 000-default > /dev/null 2>&1
a2ensite "$hostname.conf" > /dev/null 2>&1

a2enconf "php$php-fpm" && service apache2 restart
a2enconf "php$php-fpm" > /dev/null 2>&1
service apache2 restart > /dev/null 2>&1
7 changes: 6 additions & 1 deletion scripts/serve-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,9 @@ block="server {

echo "$block" > "/etc/nginx/sites-available/$hostname"

ln -fs "/etc/nginx/sites-available/$hostname" "/etc/nginx/sites-enabled/$hostname"
if [[ -f /etc/nginx/sites-enabled/default ]]
then
rm /etc/nginx/sites-enabled/default
fi

ln -fs "/etc/nginx/sites-available/$hostname" "/etc/nginx/sites-enabled/$hostname"

0 comments on commit 3d54cd3

Please sign in to comment.