12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- name: app
- type: php:7.3
- build:
- flavor: composer
- dependencies:
- nodejs:
- yarn: "*"
- variables:
- php:
- display_errors: Off
- hooks:
- build: |
- set -e
- make build_frontend
- mkdir -p web
- # Move app where it should be
- mv application assets doc inc plugins tpl vendor index.php shaarli_version.php webpack.config.js composer.json composer.lock web/
- # Set up dirs
- ln -s /tmp/app web/tmp
- ln -s /tmp/cache web/cache
- ln -s /tmp/pagecache web/pagecache
- ln -s ../private web/data
- deploy: |
- set -e
- mkdir -p /tmp/app /tmp/cache /tmp/pagecache
- disk: 2048
- mounts:
- 'private':
- source: local
- source_path: private
- web:
- locations:
- "/":
- root: "web"
- passthru: true
- index: ["index.php"]
- "/data":
- allow: false
- "/cache":
- allow: false
- "/pagecache":
- allow: false
- "/tmp":
- allow: false
|