-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathboxfile.yml
59 lines (47 loc) · 1.09 KB
/
boxfile.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
run.config:
# install php and associated runtimes
engine: php
# php engine configuration (php version, extensions, etc)
engine.config:
# sets the php version to 7.0
runtime: php-7.0
# use nginx
webserver: nginx
# public directory
document_root: public
# enables php extensions
extensions:
- pdo
- pdo_mysql
- mbstring
- tokenizer
- session
- zip
- dom
- xml
- ctype
#
deploy.config:
before_live:
web.main:
- php artisan migrate --force
- mkdir -p storage/framework/{sessions,cache,views}
# add a MySQL database
data.db:
image: nanobox/mysql:5.6
# add a local storage database
data.storage:
image: nanobox/unfs:0.9
# add a web server
web.main:
start: php-server
# add writable dirs to your web component
writable_dirs:
- bootstrap/cache
# the path to a logfile you want streamed to the nanobox dashboard
log_watch:
laravel[error]: /app/storage/logs/laravel.log
# directories to be stored in the data.storage component
network_dirs:
data.storage:
- storage