-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-journal-server.py
More file actions
executable file
Β·35 lines (28 loc) Β· 983 Bytes
/
Copy pathstart-journal-server.py
File metadata and controls
executable file
Β·35 lines (28 loc) Β· 983 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python3
"""
Start the Production Journal Server
Run this script to start the server that handles saving journal entries
"""
import os
import sys
import subprocess
from pathlib import Path
def main():
# Get the project root directory
project_root = Path(__file__).parent
# Change to project root directory
os.chdir(project_root)
# Start the journal server
server_script = project_root / 'src' / 'server' / 'journal-server.py'
print("π§ Starting Production Journal Server...")
print(f"π Project root: {project_root}")
print(f"π Server script: {server_script}")
print("π Server will be available at: http://localhost:8082")
try:
subprocess.run([sys.executable, str(server_script)], check=True)
except KeyboardInterrupt:
print("\nπ Server stopped by user")
except Exception as e:
print(f"β Error starting server: {e}")
if __name__ == '__main__':
main()