Skip to content

Commit 1967cd4

Browse files
authored
Laravel Example (#1112)
## Summary Example of using Devbox to create a Laravel development stack. Special thanks to @jrseliga for helping me develop and test this example!! ## How was it tested? Test steps in order: * `devbox run create-project` -- should create the Laravel project * `devbox services up` -- should start mysql + php-fpm * `devbox run db:create` -- should create the `laravel` db * `devbox run db:migrate` -- should successfully run the default Laravel migrations. * `devbox run serve:dev` -- should start the artisan server, opening the URL should load the Laravel hello world page
1 parent a42eacb commit 1967cd4

File tree

5 files changed

+1404
-0
lines changed

5 files changed

+1404
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[global]
2+
pid = ${PHPFPM_PID_FILE}
3+
error_log = ${PHPFPM_ERROR_LOG_FILE}
4+
5+
[www]
6+
; user = www-data
7+
; group = www-data
8+
listen = 0.0.0.0:${PHPFPM_PORT}
9+
; listen.owner = www-data
10+
; listen.group = www-data
11+
pm = dynamic
12+
pm.max_children = 5
13+
pm.start_servers = 2
14+
pm.min_spare_servers = 1
15+
pm.max_spare_servers = 3
16+
chdir = /
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[php]
2+
3+
; Put your php.ini directives here. For the latest default php.ini file, see https://github.com/php/php-src/blob/master/php.ini-production
4+
5+
; memory_limit = 128M
6+
; expose_php = Off

0 commit comments

Comments
 (0)