Skip to content

Commit

Permalink
簡易expressサーバーを追加/インストールスクリプト修正 #178
Browse files Browse the repository at this point in the history
  • Loading branch information
kujirahand committed Feb 5, 2018
1 parent 50c281e commit 8da7a81
Show file tree
Hide file tree
Showing 8 changed files with 405 additions and 54 deletions.
2 changes: 1 addition & 1 deletion bin/nako3server.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off
SET ROOT_DIR=%~dp0\..
cd %ROOT_DIR%
call npm start
call npm run server
pause

8 changes: 4 additions & 4 deletions installer/install-win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ IF "%ERRORLEVEL%"=="9009" (
// --------------------------------------------
// ここから Node.js のプログラム
// --------------------------------------------
const VERSION = "3.0.21"
const VERSION = "3.0.23"
const fs = require('fs')
const execSync = require('child_process').execSync
try {
// インストールされているかチェック
let cnakoVersion = execSync('cnako3 -v').toString()
let cnakoVersion = execSync('cnako3 -v').toString().replace(/\s+/, '')
if (cnakoVersion !== VERSION) {
console.log("UPDATE")
execSync('CALL npm -g update nadesiko3')
Expand All @@ -37,10 +37,10 @@ try {
const result = execSync('CALL npm -g install nadesiko3');
console.log(result.toString());
}
// なでしこインストールディレクトリを見る
// デモサーバーを起動
const root = execSync('npm -g root').toString()
const nadesiko = root + "\\nadesiko3"
execSync(nadesiko + "\\bin\\nako3-build.bat")
execSync(nadesiko + "\\bin\\nako3-server.bat")
console.log("ok.");


Expand Down
2 changes: 1 addition & 1 deletion installer/start-win.bat
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ IF "%ERRORLEVEL%"=="9009" (
// --------------------------------------------
// ここから Node.js のプログラム
// --------------------------------------------
const VERSION = "3.0.21"
const VERSION = "3.0.24"
const fs = require('fs')
const execSync = require('child_process').execSync

Expand Down
Loading

0 comments on commit 8da7a81

Please sign in to comment.