Remove k command and use dnx instead

This commit is contained in:
Wei Wang 2015-03-24 22:24:37 -07:00
parent b233a7ee25
commit c1a386dc45
4 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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

View File

@ -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
{

View File

@ -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