Correct minor bugs in deployment
This commit is contained in:
parent
b949982cae
commit
48e1e9c246
2
app.py
2
app.py
@ -7,5 +7,5 @@ sys.path.insert(0,here)
|
||||
|
||||
import settings
|
||||
from belote import app, socketio
|
||||
socketio.run(app, debug=False, host=settings.PUBLIC_URL, port=8080)
|
||||
socketio.run(app, debug=False, host=settings.LISTEN_URL, port=8080)
|
||||
|
||||
|
@ -417,5 +417,5 @@ def delete_game(user=None, game=None):
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
socketio.run(app, debug=True, host='0.0.0.0', port=8080 )
|
||||
socketio.run(app, debug=True, host='127.0.0.1', port=8080 )
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
# The public url for preventing
|
||||
# Cross_origin bugs
|
||||
PUBLIC_URL='127.0.0.1'
|
||||
# Listen url
|
||||
LISTEN_URL = '127.0.0.1'
|
||||
|
@ -118,11 +118,12 @@ socket.on('leave', function(data){
|
||||
$('#gostart').hide();
|
||||
$('#add_player').show();
|
||||
{% else %}
|
||||
if (username == {{ user.login }}){
|
||||
if (username == '{{ user.login }}'){
|
||||
console.log("Vous avez été banni");
|
||||
$('#listpart').prepend(`
|
||||
<div class="alert" id="alert0">
|
||||
<button type="button" class="close" onclick="javascript:hidealert('alert0')">×</button>
|
||||
Vous avez été banni !
|
||||
</div>
|
||||
`);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user