We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我想在 6666 端口启动项目
ng server --port 6666
在依赖包中找到@angular/cli/lib/config/schema.json,在523行或者直接搜索'port'在它键为default的地方填入 6666
"serve": { ... "port": { "description": "The port the application will be served on.", "type": "number", "default": 6666 } }
如果你是用脚手架自动生成的项目,并且要用jasmine做单元测试的话,还需要做一步:找到protractor.conf.js文件把‘baseUrl’也改成新端口,让测试代码在改过的端口运行。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
如歌换个端口启动项目?
我想在 6666 端口启动项目
在依赖包中找到@angular/cli/lib/config/schema.json,在523行或者直接搜索'port'在它键为default的地方填入 6666
如果你是用脚手架自动生成的项目,并且要用jasmine做单元测试的话,还需要做一步:找到protractor.conf.js文件把‘baseUrl’也改成新端口,让测试代码在改过的端口运行。
The text was updated successfully, but these errors were encountered: