nl_tokens: Handle attempted deployments . Redirect to the deployment on success . On stack locked errors redirect to the region view otherwise a full error view .
pl_tokens: function deploy ( req , res ) { var stackName = req . params . stack , regionName = req . params . <mask> , 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 ) ) ; } } ) ; }