Add static assets to host bootstrap
Committed f1385a
--- a/web/host/__init__.py
+++ b/web/host/__init__.py
def finish_setup(machine):
console.print("Installing node")
machine.setup_node()
+ console.print("Installing static assets")
+ machine.setup_static_assets()
console.print("Installing mediasoup")
machine.setup_mediasoup()
console.print("Installing etherpad")
self._apt("install -yq nodejs")
self.run("npm install -g gulp-cli")
+ def setup_static_assets(self):
+ """
+ Install static assets.
+
+ """
+ assets_dir = self.run_dir / "media/assets"
+ self.user = "admin"
+ self.run(f"git clone https://github.com/canopy/static-assets.git {assets_dir}")
+
def setup_mediasoup(self):
"""
Install mediasoup.