feat: integrate Just Works app and native business setup
Preserve hosted website UX inside Archipelago, add isolated Business and owner-authorized native wallet setup, and include deployment handoff. Based on main with native signer import already accepted.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
"""Run the app adapter and isolated Business service with shared lifecycle."""
|
||||
import os
|
||||
import subprocess
|
||||
import time
|
||||
children = []
|
||||
try:
|
||||
children.append(subprocess.Popen(['python3', 'business/server.py'], env={**os.environ,
|
||||
'JWB_HOST':'127.0.0.1', 'JWB_PORT':'4310', 'JWB_BASE_PATH':'/business-demo',
|
||||
'JWB_DATA_DIR':'/data/business', 'JWB_AUTH_MODE':'enforce',
|
||||
'JWB_COOKIE_SECURE':'0', 'JWB_ARCHIPELAGO':'1'}))
|
||||
children.append(subprocess.Popen(['python3', 'server.py']))
|
||||
while all(child.poll() is None for child in children): time.sleep(0.5)
|
||||
finally:
|
||||
for child in children:
|
||||
if child.poll() is None: child.terminate()
|
||||
for child in children: child.wait()
|
||||
raise SystemExit(1)
|
||||
Reference in New Issue
Block a user