Skip to content

Instantly share code, notes, and snippets.

@tim-bec
Created December 14, 2017 11:22
Show Gist options
  • Save tim-bec/12a2e1b3bee8ed17c507f05ba85a092e to your computer and use it in GitHub Desktop.
Save tim-bec/12a2e1b3bee8ed17c507f05ba85a092e to your computer and use it in GitHub Desktop.
composer faile boxfile
run.config:
# install php and associated runtimes
engine: php
# php engine configuration (php version, extensions, etc)
engine.config:
apache_document_root: app
apache_default_gateway: 'index.php'
runtime: php-5.6
max_execution_time: 120
# Let op: This memory limit could be a little bit high when deploying to aws, but we need it currently to resolve the composer deps
memory_limit: '2000M'
post_max_size: '256M'
upload_max_filesize: '256M'
default_locale: 'de_DE'
extensions:
- curl
- pdo
- gd
- pdo_mysql
- mysqli
- zip
- mbstring
- calendar
- dom
- ctype
- xml
- iconv
- session
- simplexml
- zlib
- tokenizer
- xmlwriter
- soap
# add nodejs to the run environment
extra_packages:
- nodejs
# cache node_modules
cache_dirs:
- node_modules
# add node_module bins to the $PATH
extra_path_dirs:
- node_modules/.bin
# Custom commands to prepare the environment
extra_steps:
- cd app/composer && composer install
- npm install
# 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: start-php
apache: start-apache
# add writable dirs to your web component
writable_dirs:
- app/files/
- app/templates/
- app/composer/
- app/system/modules
# the path to a logfile you want streamed to the nanobox dashboard
log_watch:
contao[error]: /system/logs/error.log
# directories to be stored in the data.storage component
network_dirs:
data.storage:
- app/files/
- ressources/
deploy.config:
# run gulp release command
extra_steps:
- npm run production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment