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:
|
## Run on WebListener/Kestrel:
|
||||||
* Open a command prompt and cd `\src\MusicStore\`.
|
* Open a command prompt and cd `\src\MusicStore\`.
|
||||||
* **[WebListener]:**
|
* **[WebListener]:**
|
||||||
4. Run `k web` (Application started at URL **http://localhost:5002/**).
|
4. Run `dnx . web` (Application started at URL **http://localhost:5002/**).
|
||||||
* **[Kestrel]:**
|
* **[Kestrel]:**
|
||||||
5. Run `k kestrel` (Application started at URL **http://localhost:5004/**).
|
5. Run `dnx . kestrel` (Application started at URL **http://localhost:5004/**).
|
||||||
* **[CustomHost]:**
|
* **[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:
|
## To run the sample on Mac/Mono:
|
||||||
* Follow [Home](https://github.com/aspnet/home) instructions to install mono, kvm on Mac.
|
* Follow [Home](https://github.com/aspnet/home) instructions to install mono, kvm on Mac.
|
||||||
* Open a command prompt and cd `\src\MusicStore\`.
|
* Open a command prompt and cd `\src\MusicStore\`.
|
||||||
* Execute `dnu restore`.
|
* 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.
|
**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
|
### 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
|
source packages/KoreBuild/build/dnvm.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! type k > /dev/null 2>&1; then
|
if ! type dnx > /dev/null 2>&1; then
|
||||||
dnvm upgrade
|
dnvm upgrade
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ using Microsoft.Framework.ConfigurationModel;
|
||||||
namespace MusicStore
|
namespace MusicStore
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This demonstrates how the application can be launched in a K console application.
|
/// This demonstrates how the application can be launched in a console application.
|
||||||
/// k run command in the application folder will invoke this.
|
/// "dnx . run" command in the application folder will invoke this.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Program
|
public class Program
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -181,7 +181,7 @@ namespace MusicStore
|
||||||
// netsh http add urlacl url=http://ktesting:5001/ user=[domain\user]
|
// netsh http add urlacl url=http://ktesting:5001/ user=[domain\user]
|
||||||
|
|
||||||
// The sample app can then be run via:
|
// The sample app can then be run via:
|
||||||
// k web
|
// dnx . web
|
||||||
app.UseMicrosoftAccountAuthentication();
|
app.UseMicrosoftAccountAuthentication();
|
||||||
|
|
||||||
// Add MVC to the request pipeline
|
// Add MVC to the request pipeline
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue