Skip to content

Commit

Permalink
U - 通用 - 修复发布过程中报错问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
zyupo committed Sep 14, 2018
1 parent 720ef59 commit a614e37
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $ -e MYSQL_DATABASE="spug" //指定数据库名称
$ npm run dev
4. Visit 访问:
$ http://$HOST:8010 (http://你的主机IP:8080 来访问 Spug)
$ http://$HOST:8080 (http://你的主机IP:8080 来访问 Spug)
```

Expand Down
1 change: 0 additions & 1 deletion spug_api/apps/assets/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ def get():
Argument('pagesize', type=int, default=10, required=False),
Argument('host_query', type=dict, required=False), ).parse(request.args)
if error is None:
print('host_ng', form)
host_data = Host.query
if form.page == -1:
return json_response({'data': [x.to_json() for x in host_data.all()], 'total': -1})
Expand Down
7 changes: 3 additions & 4 deletions spug_api/libs/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,10 +217,9 @@ def remove_queue(self, token=None):
if q:
q.destroy()
return
for t, q in self._queues.items():
if q.finished:
q.destroy()
self._queues.pop(t)
for t, q in [(t, q) for t, q in self._queues.items() if q.finished]:
q.destroy()
self._queues.pop(t)


QueuePool = CommonQueue()
4 changes: 2 additions & 2 deletions spug_web/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ module.exports = (options = {}) => ({
}
},
devServer: {
host: '127.0.0.1',
port: 8010,
host: '0.0.0.0',
port: 8080,
proxy: {
'/api/': {
target: config.apiServer,
Expand Down

0 comments on commit a614e37

Please sign in to comment.