mirror of
https://github.com/nttgin/BGPalerter.git
synced 2024-05-19 06:50:08 +00:00
removed dependency from yarn. Only npm will be supported from now
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
## Running BGPalerter from binaries
|
||||
|
||||
1. Download the binary [here](https://github.com/nttgin/BGPalerter/releases) (be sure to select the one for your OS)
|
||||
1. Download the binary [here](https://github.com/nttgin/BGPalerter/releases) (be sure to select the one for your OS).
|
||||
|
||||
2. Download [`config.yml.example`](https://raw.githubusercontent.com/nttgin/BGPalerter/master/config.yml.example) as `config.yml` and [`prefixes.yml.example`](https://raw.githubusercontent.com/nttgin/BGPalerter/master/prefixes.yml.example) as `prefixes.yml`, and place them in the same directory of the executable (if you skip this step, some default configuration files will be generated during the first execution)
|
||||
2. Download [`config.yml.example`](https://raw.githubusercontent.com/nttgin/BGPalerter/master/config.yml.example) as `config.yml` and [`prefixes.yml.example`](https://raw.githubusercontent.com/nttgin/BGPalerter/master/prefixes.yml.example) as `prefixes.yml`, and place them in the same directory of the executable (if you skip this step, some default configuration files will be generated during the first execution).
|
||||
|
||||
3. Modify `prefixes.yml` and add the prefixes you want to monitor (or see below how to auto generate this file)
|
||||
3. Modify `prefixes.yml` and add the prefixes you want to monitor (or see below how to auto generate this file).
|
||||
|
||||
4. Run the executable (e.g. `chmod 700 bgpalerter-linux-x64 && nohup ./bgpalerter-linux-x64 &`)
|
||||
4. Run the executable (e.g. `chmod 700 bgpalerter-linux-x64 && nohup ./bgpalerter-linux-x64 &`).
|
||||
|
||||
5. See the alerts in `logs/reports-YYYY-MM-DD.log` (e.g. `tail -f logs/reports*`)
|
||||
|
||||
@@ -22,10 +22,10 @@ If you enable email reporting, download also the directory `reports/email_templa
|
||||
## Running BGPalerter from the source code
|
||||
|
||||
|
||||
1. git clone this repo
|
||||
1. Git clone this repo.
|
||||
|
||||
2. install Node.js (version >= 10.16) and npm ([installing node and npm](https://nodejs.org/en/download/))
|
||||
2. Install Node.js (version >= 10.16) and npm ([installing node and npm](https://nodejs.org/en/download/)).
|
||||
|
||||
3. execute `npm install` or `yarn` to install all dependencies ([installing yarn](https://yarnpkg.com/lang/en/docs/install))
|
||||
3. Execute `npm install` to install all dependencies.
|
||||
|
||||
4. run `npm run watch-and-serve` to run the application. At every file change it will self-reload.
|
||||
4. Run `npm run watch-and-serve` to run the application. At every file change it will self-reload.
|
||||
|
5
package-lock.json
generated
5
package-lock.json
generated
@@ -7381,11 +7381,6 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"yarn": {
|
||||
"version": "1.21.1",
|
||||
"resolved": "https://registry.npmjs.org/yarn/-/yarn-1.21.1.tgz",
|
||||
"integrity": "sha512-dQgmJv676X/NQczpbiDtc2hsE/pppGDJAzwlRiADMTvFzYbdxPj2WO4PcNyriSt2c4jsCMpt8UFRKHUozt21GQ=="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -47,8 +47,7 @@
|
||||
"winston": "^3.2.1",
|
||||
"winston-daily-rotate-file": "^4.3.1",
|
||||
"ws": "^7.2.0",
|
||||
"yargs": "^15.0.2",
|
||||
"yarn": "^1.21.1"
|
||||
"yargs": "^15.0.2"
|
||||
},
|
||||
"pkg": {
|
||||
"scripts": [
|
||||
|
Reference in New Issue
Block a user