freephile / meza

Setup an enterprise MediaWiki server with simple commands
MIT License
0 stars 0 forks source link

Create a 'develop' playbook #11

Open freephile opened 4 months ago

freephile commented 4 months ago

Idea

Add a playbook that enables a deploy to be a "developer" deploy with debugging tools fully enabled.

Issue details

One thing needed would be composer install of dev requirements But immediately, you notice that things don't support development and debugging without additional supporting tools. For example, phan for static analysis requires the Abstract Syntaxt Tree extension to PHP. In order to run ./vendor/bin/phan on your mediawiki codebase, you need to sudo pecl install ast and add to your php.ini via a file such as /etc/php.d/20-ast.ini

; Enable Abstract Syntax Tree  extension module
extension=ast.so

We should have a playbook that can enable (or remove?) debugging and development tools.

freephile commented 4 months ago

Note: I tried to run phan on my wimpy 4GB VirtualBox VM and the process got killed.