.platform.app.yaml 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. name: app
  2. type: php:7.3
  3. build:
  4. flavor: composer
  5. dependencies:
  6. nodejs:
  7. yarn: "*"
  8. variables:
  9. php:
  10. display_errors: Off
  11. hooks:
  12. build: |
  13. set -e
  14. make build_frontend
  15. mkdir -p web
  16. # Move app where it should be
  17. mv application assets doc inc plugins tpl vendor index.php shaarli_version.php webpack.config.js composer.json composer.lock web/
  18. # Set up dirs
  19. ln -s /tmp/app web/tmp
  20. ln -s /tmp/cache web/cache
  21. ln -s /tmp/pagecache web/pagecache
  22. ln -s ../private web/data
  23. deploy: |
  24. set -e
  25. mkdir -p /tmp/app /tmp/cache /tmp/pagecache
  26. disk: 2048
  27. mounts:
  28. 'private':
  29. source: local
  30. source_path: private
  31. web:
  32. locations:
  33. "/":
  34. root: "web"
  35. passthru: true
  36. index: ["index.php"]
  37. "/data":
  38. allow: false
  39. "/cache":
  40. allow: false
  41. "/pagecache":
  42. allow: false
  43. "/tmp":
  44. allow: false