Client Side AssetsΒΆ

Often projects need to pre-compile assets at or just before deploy time to be uploaded to the remote host. The file is a perfect place to perform this kind of thing as it will be loaded once and before any remote connections are made.


from pyinfra import local, logger'Running yarn install & build')'yarn install')'yarn run build')

Simply place this alongside your deploys and pyinfra will pick it up.