зеркало из https://github.com/aspnet/MusicStore.git
Modifying the Helios.cmd, Selfhost.cmd and CustomHost.cmd to start the application on different ports on different hosting models.
This will help us to root cause issues faster with fewer questions.
This commit is contained in:
Родитель
acb8421c90
Коммит
647ac5dac0
|
@ -4,11 +4,11 @@
|
|||
1. Run build.cmd to restore all the necessary packages and generate project files
|
||||
2. Open a command prompt and cd \src\<AppFolder>\
|
||||
3. [Helios]:
|
||||
4. Helios.cmd to launch the app on IISExpress.
|
||||
4. Helios.cmd to launch the app on IISExpress (Application started at URL http://localhost:5001/).
|
||||
4. [SelfHost]:
|
||||
5. Run Selfhost.cmd (This runs k web)
|
||||
5. Run Selfhost.cmd (This runs k web - Application started at URL http://localhost:5002/)
|
||||
5. [CustomHost]:
|
||||
6. Run CustomHost.cmd (This hosts the app in a console application)
|
||||
6. Run CustomHost.cmd (This hosts the app in a console application - Application started at URL http://localhost:5003/)
|
||||
|
||||
### Adding a new package:
|
||||
1. Edit the project.json to include the package you want to install
|
||||
|
@ -23,5 +23,5 @@
|
|||
2. This is a captured snapshot of build numbers which worked for this application. This LKG will be captured once in a while.
|
||||
|
||||
### Note:
|
||||
1. By default the scripts will start the application at http://localhost:5001/. Modify the scripts to change the url.
|
||||
1. The scripts Helios.cmd, SelfHost.cmd and CustomHost.cmd will start the application on different ports. To change the port or URL modify the scripts or project.json (in case of selfhost alone).
|
||||
2. Use Visual studio only for editing & intellisense. Don't try to build or run the app from Visual studio.
|
|
@ -8,4 +8,4 @@ REM Figure out path to K.cmd
|
|||
|
||||
FOR /F %%j IN ('dir /b /o:-d ..\..\packages\ProjectK*') do (SET K_CMD_PATH=..\..\packages\%%j\tools\k.cmd)
|
||||
echo Found k.cmd at %K_CMD_PATH%. Starting the self host application
|
||||
%K_CMD_PATH% run server.urls=http://localhost:5001
|
||||
%K_CMD_PATH% run server.urls=http://localhost:5003
|
|
@ -34,7 +34,7 @@
|
|||
"Microsoft.AspNet.Logging": "0.1-alpha-*"
|
||||
},
|
||||
"commands": {
|
||||
"web": "Microsoft.AspNet.Hosting server.name=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5001"
|
||||
"web": "Microsoft.AspNet.Hosting server.name=Microsoft.AspNet.Server.WebListener server.urls=http://localhost:5002"
|
||||
},
|
||||
"configurations": {
|
||||
"net45": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче