code: def scale_up_dynos(id):
      
      # Load psiTurk configuration.
      config = PsiturkConfig()
      config.load_config()
  
      dyno_type = config.get('Server Parameters', 'dyno_type')
      num_dynos_web = config.get('Server Parameters', 'num_dynos_web')
      num_dynos_worker = config.get('Server Parameters', 'num_dynos_worker')
  
      log("Scaling up the dynos...")
      subprocess.call(
          "heroku ps:scale web=" + str(num_dynos_web) + ":" +
          str(dyno_type) + " --app " + id, shell=True)
  
      subprocess.call(
          "heroku ps:scale worker=" + str(num_dynos_worker) + ":" +
          str(dyno_type) + " --app " + id, shell=True)
  
      clock_on = config.getboolean('Server Parameters', 'clock_on')
      if clock_on:
          subprocess.call(
              "heroku ps:scale clock=1:" + dyno_type + " --app " + id,
              shell=True)
docs: Scale up the Heroku dynos.