mirror of
				https://gitea.augustin64.fr/piair/MsRewards-Reborn.git
				synced 2025-11-04 07:33:53 +01:00 
			
		
		
		
	please
This commit is contained in:
		@@ -15,7 +15,7 @@ import redis
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# redis part for live update
 | 
			
		||||
redis_client = redis.StrictRedis(host='localhost', port=6379, db=0)
 | 
			
		||||
redis_client = redis.StrictRedis(host='127.0.0.1', port=6379, db=0)
 | 
			
		||||
pubsub = redis_client.pubsub()
 | 
			
		||||
pubsub.subscribe('console')
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
service grafana-server start
 | 
			
		||||
service nginx start
 | 
			
		||||
nohup redis-server &
 | 
			
		||||
gunicorn --reload -w 1 --worker-class gevent -b 0.0.0.0:6666 'app:app'
 | 
			
		||||
gunicorn --reload --worker-class gevent -b 0.0.0.0:6666 'app:app'
 | 
			
		||||
 
 | 
			
		||||
@@ -20,7 +20,7 @@
 | 
			
		||||
    const eventSource = new EventSource('/stream');
 | 
			
		||||
 | 
			
		||||
    eventSource.onmessage = (event) => {
 | 
			
		||||
        console.log("etqhbbqetbqedrtqberzegr");
 | 
			
		||||
        console.log("je ne comprend vraiment plus rien, meme git me casse les couilles");
 | 
			
		||||
        const newOutput = document.createElement('div');
 | 
			
		||||
        newOutput.textContent = event.data;
 | 
			
		||||
        consoleElement.appendChild(newOutput);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user