from fabric.api import *

from fabfile import install_requirements
from fabfile import migrate_db


def build(service=None):
    """Perform pre-installation tasks for the service."""
    pass


def install(service=None):
    """Perform service specific post-installation tasks."""
    install_requirements()
    migrate_db(cmd='python manage.py')

from fabric.api import *

from fabfile import install_requirements
from fabfile import migrate_db


def build(service=None):
    """Perform pre-installation tasks for the service."""
    pass


def install(service=None):
    """Perform service specific post-installation tasks."""
    install_requirements()
    migrate_db(cmd='python manage.py')
    deploy_static(static_dir='../assets/', cmd='python manage.py')

Deploy static files during installation
Deploy static files during installation

  from fabric.api import *
  
  from fabfile import install_requirements
  from fabfile import migrate_db
  
  
  def build(service=None):
      """Perform pre-installation tasks for the service."""
      pass
  
  
  def install(service=None):
      """Perform service specific post-installation tasks."""
      install_requirements()
      migrate_db(cmd='python manage.py')
+     deploy_static(static_dir='../assets/', cmd='python manage.py')
  
Deploy static files during installation
## Code Before:
from fabric.api import *

from fabfile import install_requirements
from fabfile import migrate_db


def build(service=None):
    """Perform pre-installation tasks for the service."""
    pass


def install(service=None):
    """Perform service specific post-installation tasks."""
    install_requirements()
    migrate_db(cmd='python manage.py')

## Instruction:
Deploy static files during installation
## Code After:
from fabric.api import *

from fabfile import install_requirements
from fabfile import migrate_db


def build(service=None):
    """Perform pre-installation tasks for the service."""
    pass


def install(service=None):
    """Perform service specific post-installation tasks."""
    install_requirements()
    migrate_db(cmd='python manage.py')
    deploy_static(static_dir='../assets/', cmd='python manage.py')
