forked from jmcastagnetto/ubigeo-peru
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Boxfile
52 lines (46 loc) · 1.18 KB
/
Boxfile
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
global:
env:
- SLIM_MODE: production
cache2:
type: memcached
name: result_cache
web1:
# App settings
name: ubigeo-peru
shared_writable_dirs:
- var/logs
- var/cache
# Apache settings
document_root: public
apache_log_level: warn
# PHP settings
php_version: 5.3.10
php_extensions:
- apc
- json
- mbstring
- pdo
- pdo_sqlite
- session
- memcache
- zip
php_error_reporting: 30719 # Same as E_ALL
php_display_errors: "1"
php_short_open_tag: "0"
php_default_mimetype: "application/json"
php_date_timezone: "America/Lima"
php_default_locale: "en_US"
php_default_charset: "utf-8"
php_max_execution_time: 30
php_max_input_time: 60
php_post_max_size: "8M"
php_file_uploads: "1"
php_upload_max_filesize: "2M"
php_max_file_uploads: 20
# Install Composer dependencies
after_build:
- "if [ ! -f composer.phar ]; then curl -s http://getcomposer.org/installer | php; fi; php composer.phar install"
# Clear template cache and old logs
after_deploy:
- "rm -Rf var/cache/*"
- "rm -Rf var/logs/*"