Docker php development aditional scripts
For docker I've some local scripts which I occasionaly use for day-to-day jobs. The reason I don't commit them in the repository is because they're so project specific.
- Install https://github.com/JeroenBoersma/docker-compose-development
- Put the scripts in
workspace/binwith execute permissions.
Next up, some Magento 2 scripts which I use to get back on track.
- todo: import database from aws
Clear all Magento 2 generated context and do a install composer packages
Run setup scripts, deploy static content(this is a speed improvement for local development) Create a local user with a defined password.
Do a clean install of Magento 2, set base url's, locales, generated xsd mapping and set in dev mode.
Link global auth.json and deploy sampledata.
Run the Magento cron every 60 seconds.
host machine scripts
watch -d -n 5 'du -hs generated/* var/*cache pub/static/*'
Watch files for changes over time, helped me a lot :)
Awesome Mage2tv cachecleaner.
Put this one in your