14 lines
620 B
Python
14 lines
620 B
Python
from pathlib import Path
|
|
import json
|
|
R=Path(__file__).resolve().parent.parent
|
|
P=R/'storage/app/private/investmoz-v2/portal-audit'
|
|
plan=json.loads((P/'service-followup-latest.json').read_text(encoding='utf-8'))
|
|
S=Path(plan['source'])
|
|
assert S.name.startswith('workflow-service-followup-source-') and plan['target']['port']==55441
|
|
(S/'artisan').write_text("""<?php
|
|
ini_set('zend.exception_ignore_args','1');
|
|
$app=require __DIR__.'/tools/upgrade-runtime.php';
|
|
exit($app->handleCommand(new Symfony\\Component\\Console\\Input\\ArgvInput));
|
|
""",encoding='utf-8')
|
|
print(json.dumps({'qa_artisan_guard':True,'active_writes':0}))
|