Remove k command and use dnx instead
This commit is contained in:
parent
b233a7ee25
commit
c1a386dc45
|
|
@ -14,17 +14,17 @@ This project is part of ASP.NET 5.0. You can find samples, documentation and get
|
|||
## Run on WebListener/Kestrel:
|
||||
* Open a command prompt and cd `\src\MusicStore\`.
|
||||
* **[WebListener]:**
|
||||
4. Run `k web` (Application started at URL **http://localhost:5002/**).
|
||||
4. Run `dnx . web` (Application started at URL **http://localhost:5002/**).
|
||||
* **[Kestrel]:**
|
||||
5. Run `k kestrel` (Application started at URL **http://localhost:5004/**).
|
||||
5. Run `dnx . kestrel` (Application started at URL **http://localhost:5004/**).
|
||||
* **[CustomHost]:**
|
||||
6. Run `k run` (This hosts the app in a console application - Application started at URL **http://localhost:5003/**).
|
||||
6. Run `dnx . run` (This hosts the app in a console application - Application started at URL **http://localhost:5003/**).
|
||||
|
||||
## To run the sample on Mac/Mono:
|
||||
* Follow [Home](https://github.com/aspnet/home) instructions to install mono, kvm on Mac.
|
||||
* Open a command prompt and cd `\src\MusicStore\`.
|
||||
* Execute `dnu restore`.
|
||||
* Try `k kestrel` to run the application.
|
||||
* Try `dnx . kestrel` to run the application.
|
||||
**NOTE: On Mono since SQL client is not available the sample uses an InMemoryStore to run the application. So the changes that you make will not be persisted.
|
||||
|
||||
### Deploy on Heroku
|
||||
|
|
|
|||
2
build.sh
2
build.sh
|
|
@ -31,7 +31,7 @@ if ! type dnvm > /dev/null 2>&1; then
|
|||
source packages/KoreBuild/build/dnvm.sh
|
||||
fi
|
||||
|
||||
if ! type k > /dev/null 2>&1; then
|
||||
if ! type dnx > /dev/null 2>&1; then
|
||||
dnvm upgrade
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using Microsoft.Framework.ConfigurationModel;
|
|||
namespace MusicStore
|
||||
{
|
||||
/// <summary>
|
||||
/// This demonstrates how the application can be launched in a K console application.
|
||||
/// k run command in the application folder will invoke this.
|
||||
/// This demonstrates how the application can be launched in a console application.
|
||||
/// "dnx . run" command in the application folder will invoke this.
|
||||
/// </summary>
|
||||
public class Program
|
||||
{
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ namespace MusicStore
|
|||
// netsh http add urlacl url=http://ktesting:5001/ user=[domain\user]
|
||||
|
||||
// The sample app can then be run via:
|
||||
// k web
|
||||
// dnx . web
|
||||
app.UseMicrosoftAccountAuthentication();
|
||||
|
||||
// Add MVC to the request pipeline
|
||||
|
|
|
|||
Loading…
Reference in New Issue