mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 01:02:54 +00:00 
			
		
		
		
	Handle starting TFWServer in baseimage
This commit is contained in:
		
							
								
								
									
										4
									
								
								supervisor/components/tfw_server.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								supervisor/components/tfw_server.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
[program:tfwserver]
 | 
			
		||||
user=root
 | 
			
		||||
directory=%(ENV_TFW_SERVER_DIR)s
 | 
			
		||||
command=python3 tfw_server.py
 | 
			
		||||
							
								
								
									
										9
									
								
								supervisor/tfw_server.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								supervisor/tfw_server.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
from tornado.ioloop import IOLoop
 | 
			
		||||
 | 
			
		||||
from tfw.networking import TFWServer
 | 
			
		||||
from tfw.config import TFWENV
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    TFWServer().listen(TFWENV.WEB_PORT)
 | 
			
		||||
    IOLoop.instance().start()
 | 
			
		||||
		Reference in New Issue
	
	Block a user