소스 검색

FileServer: enhance warning when no index.html file can be found

Manfred Kröhnert 11 년 전
부모
커밋
163f4d0c74
3개의 변경된 파일292개의 추가작업 그리고 346개의 파일을 삭제
  1. 131 167
      cli/js/AmberCli.js
  2. 3 1
      cli/st/AmberCli.st
  3. 158 178
      cli/support/amber-cli.js

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 131 - 167
cli/js/AmberCli.js


+ 3 - 1
cli/st/AmberCli.st

@@ -169,7 +169,9 @@ username: aUsername
 
 checkDirectoryLayout
 	(fs existsSync: self basePath, 'index.html') ifFalse: [
-		console warn: 'Warning: project directory does not contain index.html'].
+		console warn: 'Warning: project directory does not contain index.html.'.
+		console warn: '    You can specify its location with --fallback-page.'.
+		console warn: '    Or you can specify the directory to serve with --base-path.'.].
 	(fs existsSync: self basePath, 'st') ifFalse: [
 		console warn: 'Warning: project directory is missing an "st" directory'].
 	(fs existsSync: self basePath, 'js') ifFalse: [

파일 크기가 너무 크기때문에 변경 상태를 표시하지 않습니다.
+ 158 - 178
cli/support/amber-cli.js


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.