Source: site.view [edit]
Function name: stagingBecomesProduction
Arguments:
Description:
Page type: webl
Render function:  
Module: perfectCartoon

Page source:

var fi = Wub_GetFunctionInfo("cartoonDBSettings");
var settings = WubEval(fi.exec);

var prevProduction = settings.production;
settings.production := settings.staging;
settings.staging := prevProduction;
fi.exec := ToString(settings);
Wub_SaveFunctionInfo(fi);
 
WubCall("adminConsole", ["STAGING pushed to PRODUCTION!"]);