mirror of https://github.com/EdgeVPNio/portal.git
Add missing file, update stop command, git ignore
parent
c9cefccf5b
commit
d0eb32f0e0
|
@ -1 +1,6 @@
|
|||
*.env
|
||||
node_modules
|
||||
build/
|
||||
package-lock.json
|
||||
run.sh
|
||||
visualizer.log
|
|
@ -0,0 +1,16 @@
|
|||
import { createSlice } from "@reduxjs/toolkit";
|
||||
|
||||
const topologySlice = createSlice({
|
||||
name: "topology",
|
||||
initialState: { current: {}, graph: {} },
|
||||
reducers: {
|
||||
setTopology(state, action) {
|
||||
state.current = action.payload;
|
||||
state.graph = action.payload.graph;
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
export const { setTopology } = topologySlice.actions;
|
||||
|
||||
export default topologySlice.reducer;
|
|
@ -19,7 +19,7 @@ function start()
|
|||
|
||||
function stop()
|
||||
{
|
||||
ps aux | grep -v grep | grep "Server.js" | awk '{print $2}' | xargs kill -9
|
||||
ps aux | grep -v grep | grep "node ./server/Server.js" | awk '{print $2}' | xargs kill -9
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue