old_contents: from fabric.api import run, env, cd, prefix
  from tuistudio import config
  
  
  def deploy():
      env.host_string = config.HOST_STRING
      with cd('/var/www/tuistudio'):
          run('git reset --hard HEAD')
          run('git pull')
          run('bower install --allow-root')
          run('bower update --allow-root')
          with prefix('source venv/bin/activate'):
              run('pip install -r requirements.txt')
              run('python manage.py db upgrade')
          run('supervisorctl restart tuistudio')
  
  
  def restart():
      env.host_string = config.HOST_STRING
      run('supervisorctl restart tuistudio')
new_contents: from fabric.api import run, env, cd, prefix
  from tuistudio import config
  
  
  def deploy():
      env.host_string = config.HOST_STRING
      with cd('/var/www/tuistudio'):
          run('git reset --hard HEAD')
          run('git pull')
          run('bower install --allow-root')
          run('bower update --allow-root')
          with prefix('source venv/bin/activate'):
              run('pip install -r requirements.txt')
              run('python manage.py db upgrade')
              run('python manage.py assets --parse-templates build')
          run('supervisorctl restart tuistudio')
  
  
  def restart():
      env.host_string = config.HOST_STRING
      run('supervisorctl restart tuistudio')
subject: update fabfile