Deploy Summary info. Deploy lock: only run one instance at a time.

This commit is contained in:
Andrés Montañez
2013-11-02 17:10:16 -02:00
parent c9759b19c0
commit d5ebf6e6e3
2 changed files with 51 additions and 5 deletions
+9
View File
@@ -12,6 +12,15 @@ class Mage_Console
*/
public function run($arguments)
{
register_shutdown_function(function() {
// Only Unlock if there was an error
if (error_get_last() !== null) {
if (file_exists('.mage/~working.lock')) {
unlink('.mage/~working.lock');
}
}
});
$configError = false;
try {
// Load Config