Skip to content

Commit 92e953a

Browse files
committed
feat: add update script
1 parent 39be32a commit 92e953a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ FGLab tries to follow the [SemVer](http://semver.org/) standard whenever possibl
3636

3737
Run `node lab` (or `npm start`) to start FGLab. You can now access the user interface from a browser on the current machine at `http://localhost:<FGLAB_PORT>`, where `<FGLAB_PORT>` is 5080 by default. Please read the [overview](https://github.com/Kaixhin/FGLab#overview) to understand how FGLab and FGMachine cooperate - both are needed in order to run experiments. Afterwards, you should set up instances of [FGMachine](https://github.com/Kaixhin/FGMachine).
3838

39-
To update, use `git pull` to update the repository and run `npm install` to update any changed dependencies.
39+
To update, run `npm run update`.
4040

4141
### Option 2: Docker
4242

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"start": "node lab.js",
88
"test": "echo \"No test specified\" && exit 0",
9-
"postinstall": "bower install --allow-root"
9+
"postinstall": "bower install --allow-root",
10+
"update": "git pull && npm install"
1011
},
1112
"repository": {
1213
"type": "git",

0 commit comments

Comments
 (0)