lib/web/handlers/web.js
function deploy(req, res) {
    var stackName = req.params.stack,
        regionName = req.params.region,
        to = req.body.to_revision, user;

    dreadnot.deploy(stackName, regionName, to, req.remoteUser.name, function(err, number) {
      if (err) {
        res.respond(err);
        return;
      } else {
        res.redirect(sprintf('/stacks/%s/regions/%s/deployments/%s', stackName, regionName, number));
      }
    });
  }
function deploy(req, res) {
    var stackName = req.params.stack,
        regionName = req.params.region,
        to = req.body.to_revision, user;

    dreadnot.deploy(stackName, regionName, to, req.remoteUser.name, function(err, number) {
      if (err) {
        res.respond(err);
        return;
      } else {
        res.redirect(sprintf('/stacks/%s/regions/%s/deployments/%s', stackName, regionName, number));
      }
    });
  }
Handle attempted deployments. Redirect to the deployment on success. On stack locked errors, redirect to the region view, otherwise a full error view.