Skip to content

Commit d53036c

Browse files
committed
minor fixes
1 parent e1316bc commit d53036c

File tree

4 files changed

+2
-10
lines changed

4 files changed

+2
-10
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ First, run the command that imports (and caches) the tutorial:
278278
279279
```bash
280280
cd /js/server
281-
NODE_LANG=en TUTORIAL_ROOT=/js/en.javascript.info npm run gulp engine:koa:tutorial:import
281+
NODE_LANG=en npm run gulp engine:koa:tutorial:import
282282
```
283283
284284
> For Windows: `npm i -g cross-env` and prepend the call with `cross-env` to pass environment variables, like this:
@@ -287,8 +287,6 @@ NODE_LANG=en TUTORIAL_ROOT=/js/en.javascript.info npm run gulp engine:koa:tutori
287287
> cross-env NODE_LANG=en...
288288
> ```
289289
290-
In the code above, `NODE_LANG` sets server language, while `TUTORIAL_ROOT` is the full path to tutorial repo, by default is `/js/$NODE_LANG.javascript.info`.
291-
292290
Afterwards, call `./dev <server language>` to run the server:
293291
294292
```bash

edit

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55

66
: ${1?"Usage: $0 <tutorial language> [<server language>]"}
77

8-
9-
if [ -z "$TUTORIAL_ROOT" ]; then
10-
export TUTORIAL_ROOT="../$1.javascript.info"
11-
fi
128
export NODE_LANG="${2:-en}"
139
export TUTORIAL_LANG=$1
1410
export NODE_ENV=production

edit.cmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@if "%~1"=="" goto usage
22

3-
@set TUTORIAL_ROOT=../%1.javascript.info
4-
53
@if "%~2"=="" (
64
set NODE_LANG=en
75
) else (

modules/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,4 @@ function createRoot(root) {
103103
if (!fs.existsSync(root)) {
104104
fs.ensureDirSync(root);
105105
}
106-
}
106+
}

0 commit comments

Comments
 (0)