mirror of
				https://github.com/gsi-upm/senpy
				synced 2025-10-25 20:58:18 +00:00 
			
		
		
		
	Files for deployment
This commit is contained in:
		
							
								
								
									
										2
									
								
								app.py
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								app.py
									
									
									
									
									
								
							| @@ -30,4 +30,4 @@ sp.init_app(app) | |||||||
|  |  | ||||||
| if __name__ == '__main__': | if __name__ == '__main__': | ||||||
|     app.debug = config.DEBUG |     app.debug = config.DEBUG | ||||||
|     app.run(use_reloader=False) |     app.run(host="0.0.0.0", use_reloader=False) | ||||||
|   | |||||||
							
								
								
									
										20
									
								
								supervisord.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								supervisord.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,20 @@ | |||||||
|  | [unix_http_server] | ||||||
|  | file=/tmp/senpy.sock                       ; path to your socket file | ||||||
|  |  | ||||||
|  | [supervisord] | ||||||
|  | logfile = %(here)s/logs/supervisor.log | ||||||
|  | childlogdir = %(here)s/logs/ | ||||||
|  |  | ||||||
|  | [rpcinterface:supervisor] | ||||||
|  | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface | ||||||
|  |  | ||||||
|  | [supervisorctl] | ||||||
|  | logfile = %(here)s/logs/supervisorctl.log | ||||||
|  | serverurl=unix:///tmp/senpy.sock         ; use a unix:// URL  for a unix socket | ||||||
|  |  | ||||||
|  |  | ||||||
|  | [program:senpy] | ||||||
|  | command = venv/bin/gunicorn -w 1 -b 0.0.0.0:6666 --log-file %(here)s/logs/gunicorn.log --access-logfile - app:app | ||||||
|  | directory = %(here)s | ||||||
|  | environment = PATH=%(here)s/venv/bin/ | ||||||
|  | logfile = %(here)s/logs/senpy.log | ||||||
		Reference in New Issue
	
	Block a user