Add new arguments to the update script

-Use the cmd `npm run update-explorer "explorer-only"` to update the explorer code only, without checking for out-of-date dependencies
-Use the cmd `npm run update-explorer "dependencies-only"` to update outdated dependencies only, without checking for explorer code updates
-Updated the README with the 2 new script arguments
This commit is contained in:
Joe Uhren
2022-07-09 13:53:33 -06:00
parent e5d4c639d3
commit 27c29efb81
2 changed files with 98 additions and 51 deletions
+35 -1
View File
@@ -766,7 +766,41 @@ Automatically download and install the newest explorer source code, update out-o
Update the explorer with the following command:
`npm run update-explorer`
```
npm run update-explorer
```
or (useful for crontab):
```
cd /path/to/explorer && /path/to/node ./scripts/update_explorer.js
```
**NOTE:** The update script also supports a couple optional parameters.
Use the following command if you want to update the explorer code only, without checking for out-of-date dependencies:
```
npm run update-explorer "explorer-only"
```
or (useful for crontab):
```
cd /path/to/explorer && /path/to/node ./scripts/update_explorer.js "explorer-only"
```
Use the following command if you want to upgrade outdated dependencies only, without checking for explorer code updates:
```
npm run update-explorer "dependencies-only"
```
or (useful for crontab):
```
cd /path/to/explorer && /path/to/node ./scripts/update_explorer.js "dependencies-only"
```
#### Backup Database Script