This repository has been archived by the owner on Aug 29, 2019. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy pathboxfile.yml
98 lines (87 loc) · 2.06 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Runtime configuration
run.config:
# Main engine
engine: php
engine.config:
# Using the PHP 7.1 runtime
runtime: php-7.2
# Apache
document_root: public
# Timezone/Locale/Mimetype/Encoding
date_timezone: 'UTC'
default_locale: 'en_US'
default_mimetype: 'text/html'
iconv_internal_encoding: 'UTF-8'
# Security
expose_php: 'Off'
disable_functions:
- exec
- shell_exec
- system
# Error reporting
display_errors: 'stderr'
error_reporting: E_ALL
# Execution/Input Vars/Memory Limit
max_execution_time: 30
max_input_time: 60
max_input_vars: 1000
memory_limit: '128M'
# Register argc/globals
register_argc_argv: 'Off'
register_globals: 'Off'
# Enabled extensions
extensions:
- ctype
- curl
- dom
- json
- iconv
- mbstring
- opcache
- phalcon
- session
- simplexml
- tokenizer
- xml
- xmlwriter
zend_extensions:
- opcache
dev_zend_extensions:
add:
- xdebug
rm:
- opcache
extra_steps:
- echo "alias phalcon=\'phalcon.php\'" >> /data/var/home/gonano/.bashrc
- cp /app/storage/setup/xdebug.ini /data/etc/php.dev.d/xdebug.ini
# Website setup
web.www:
# Autostart services
start:
php: start-php
apache: start-apache
# Only one route
routes:
- /
# Writable folders for logs and cache
writable_dirs:
- storage/cache/data
- storage/cache/view
- storage/cache/volt
- storage/logs
# The log to watch
log_watch:
app[error]: /app/storage/logs/application.log
# Deploy configuration
deploy.config:
# Transformations - before deployment
transform:
# Copy setup files
- cp /app/storage/setup/.env.prod /app/.env
# Force create any folders that do not exist
- mkdir -p /app/storage/cache/data
- mkdir -p /app/storage/cache/volt
- mkdir -p /app/storage/cache/view
- mkdir -p /app/storage/logs
# Clear the log for this deployment
- truncate -s 0 /app/storage/logs/application.log