mirror of https://github.com/openspug/spug
parent
720ef592ad
commit
a614e377ed
|
@ -83,7 +83,7 @@ $ -e MYSQL_DATABASE="spug" //指定数据库名称
|
||||||
$ npm run dev
|
$ npm run dev
|
||||||
|
|
||||||
4. Visit 访问:
|
4. Visit 访问:
|
||||||
$ http://$HOST:8010 (http://你的主机IP:8080 来访问 Spug)
|
$ http://$HOST:8080 (http://你的主机IP:8080 来访问 Spug)
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,6 @@ def get():
|
||||||
Argument('pagesize', type=int, default=10, required=False),
|
Argument('pagesize', type=int, default=10, required=False),
|
||||||
Argument('host_query', type=dict, required=False), ).parse(request.args)
|
Argument('host_query', type=dict, required=False), ).parse(request.args)
|
||||||
if error is None:
|
if error is None:
|
||||||
print('host_ng', form)
|
|
||||||
host_data = Host.query
|
host_data = Host.query
|
||||||
if form.page == -1:
|
if form.page == -1:
|
||||||
return json_response({'data': [x.to_json() for x in host_data.all()], 'total': -1})
|
return json_response({'data': [x.to_json() for x in host_data.all()], 'total': -1})
|
||||||
|
|
|
@ -217,10 +217,9 @@ class CommonQueue(object):
|
||||||
if q:
|
if q:
|
||||||
q.destroy()
|
q.destroy()
|
||||||
return
|
return
|
||||||
for t, q in self._queues.items():
|
for t, q in [(t, q) for t, q in self._queues.items() if q.finished]:
|
||||||
if q.finished:
|
q.destroy()
|
||||||
q.destroy()
|
self._queues.pop(t)
|
||||||
self._queues.pop(t)
|
|
||||||
|
|
||||||
|
|
||||||
QueuePool = CommonQueue()
|
QueuePool = CommonQueue()
|
||||||
|
|
|
@ -78,8 +78,8 @@ module.exports = (options = {}) => ({
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
devServer: {
|
devServer: {
|
||||||
host: '127.0.0.1',
|
host: '0.0.0.0',
|
||||||
port: 8010,
|
port: 8080,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/': {
|
'/api/': {
|
||||||
target: config.apiServer,
|
target: config.apiServer,
|
||||||
|
|
Loading…
Reference in New Issue