Skip to content

Varnish support, custom commands and enable/disable custom php extensions

Compare
Choose a tag to compare
@JeroenBoersma JeroenBoersma released this 04 Sep 11:04
· 112 commits to master since this release
6f54f79
+ Varnish support
+ Enabling/disabling custom php modules on running containers
* Updated Magento 2 configuration to latest
* tweaks for better passing of parameters
* better support for interactive scripts

Varnish support

We don't support varnish per project, it's a global varnish and you should be aware of that.

Shorts

  • add your varnish.vcl (bootstrap or working copy) in conf/varnish.vcl
  • dev down && dev up

Longer: (which gives more control)

  • create a conf/varnish.vcl
vcl 4.0;

backend default {
  .host = "web";
  .port = "80";
}
  • dev down && dev up
  • use dev cp varnishfile.vcl varnish:/
  • dev exec varsnishadm
    • vcl.load myvcl /varnishfile.vcl
    • vcl.use myvcl

Custom commands

Add custom commands to your global stack and run them with dev COMMAND

Copy your custom commands which need PHP for instance to WORKSPACE/bin
Give them execute rights and run them with dev COMMAND

It will run in the local version of PHP, so in your PHP project it' use the correct PHP version.