This repository was archived by the owner on Aug 27, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-5
lines changed
Expand file tree Collapse file tree 3 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,21 @@ node index
2929
3030On the first ``` node index ``` run, you need to run
3131``` bash
32- node fabric-reset
32+ node default-settings
3333```
3434to create first admin account
35+
36+ ## Saving data
37+ To save data (database and pictures), run:
38+ ``` bash
39+ node save
40+ ```
41+
42+ After finish, it will create compressed folder (ZIP) in auto save directory (default ./autosave) named actual date
43+
44+ ## Reseting to default settings
45+ This script must be ran on the first blog run to create admin account and more.
46+ ``` bash
47+ node default-settings
48+ ```
49+ Before run, I recommending to make data copy with ``` node save ```
Original file line number Diff line number Diff line change 11module . exports = {
22 mongoData : {
3- ip : '' ,
3+ ip : 'localhost ' ,
44 port : 27017 ,
55 user : 'root' ,
66 password : 'toor' ,
Original file line number Diff line number Diff line change 77 "start" : " nodemon index" ,
88 "watch" : " npm run build:dev && webpack-dev-server --progress --colors --hot --inline --port 8080 --history-api-fallback" ,
99 "build:dev" : " rimraf build && webpack" ,
10- "build:production" : " rimraf build && cross-env NODE_ENV=production webpack --progress --define process.env.NODE_ENV=production" ,
11- "save" : " node save" ,
12- "default-settings" : " node default-settings"
10+ "build:production" : " rimraf build && cross-env NODE_ENV=production webpack --progress --define process.env.NODE_ENV=production"
1311 },
1412 "keywords" : [
1513 " rest-api" ,
You can’t perform that action at this time.
0 commit comments