mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
updated methodologies of deployment and running spider
This commit is contained in:
@@ -87,10 +87,8 @@ const actions = {
|
||||
})
|
||||
},
|
||||
crawlSpider ({ state, dispatch }, payload) {
|
||||
const { id, nodeId } = payload
|
||||
return request.post(`/spiders/${id}/crawl`, {
|
||||
node_id: nodeId
|
||||
})
|
||||
const { id } = payload
|
||||
return request.post(`/spiders/${id}/on_crawl`)
|
||||
.then(response => {
|
||||
console.log(response.data)
|
||||
})
|
||||
@@ -124,6 +122,12 @@ const actions = {
|
||||
.then(response => {
|
||||
console.log(response)
|
||||
})
|
||||
},
|
||||
deployAll () {
|
||||
return request.post('/spiders/manage/deploy_all')
|
||||
.then(response => {
|
||||
console.log(response)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user