提交 25482eca 编写于 作者: 梦境迷离's avatar 梦境迷离

add sh for deploy

上级 52ab0a74
......@@ -14,5 +14,5 @@ akka {
# 最好restful请求也改成akka http,但是由于没有解决页面迁移问题,先这样,仅供学习。
akka-http-server {
host = "0.0.0.0"
port = 8080
port = 18080
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ mybatis.configuration.default-statement-timeout=30
spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
spring.datasource.url=jdbc:mysql://localhost:3306/websocket?useUnicode=true&useSSL=false&characterEncoding=utf-8
spring.datasource.username=root
spring.datasource.password=Rootand123456789.
spring.datasource.password=root
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
spring.datasource.platform=mysql
spring.datasource.schema=classpath:schema.sql
......@@ -46,4 +46,4 @@ spring.redis.timeout=2000
#Log
logging.level.root=warn
logging.level.cn.edu.layim.*=info
logging.file=./log/LayIM.log
\ No newline at end of file
logging.file=./log/app.log
\ No newline at end of file
......@@ -27,10 +27,10 @@ layui.use(['layim', 'jquery', 'laytpl'], function (layim) {
var im = {
init: function () {
if ('WebSocket' in window) {
var host = "0.0.0.0:8080"
// if(window.location.post != ""){
// host = host + ":" + window.location.port;
// }
var host = window.location.host
if(window.location.post != ""){
host = host + ":" + 18080;
}
//因为目前不太理解akka stream,先用query params将就一下
var url = 'ws://' + host + '/websocket?uid=' + getUid();
socket = new ReconnectingWebSocket(url, null, {debug: true, reconnectInterval: 3000});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册