diff --git a/README.md b/README.md index d39cf63..1ee7af3 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Usage specified in the `PORT` environment variable (and for best results when running locally, listen on the IP address specified in the `ADDRESS` environment variable. -2. Run `build.cmd & run.cmd` to build and run the application locally. When +2. Run `run.cmd` to build and run the application locally. When running locally, python.exe must be in the path. (It is not automatically installed as it is in the cloud.) 3. Run `pack.cmd` to output `PackAndRun.cspkg`. That file, along with diff --git a/build.cmd b/build.cmd deleted file mode 100644 index 6c5aae1..0000000 --- a/build.cmd +++ /dev/null @@ -1,6 +0,0 @@ -@echo off -if "%ServiceHostingSDKInstallPath%" == "" ( - echo Can't see the ServiceHostingSDKInstallPath environment variable. Please run from a Windows Azure SDK command-line (run Program Files\Windows Azure SDK\^\bin\setenv.cmd^). - GOTO :eof -) -cspack ServiceDefinition.csdef /copyOnly /out:PythonRole.csx \ No newline at end of file diff --git a/run.cmd b/run.cmd index 38b1de7..c7d2de2 100644 --- a/run.cmd +++ b/run.cmd @@ -3,5 +3,6 @@ if "%ServiceHostingSDKInstallPath%" == "" ( echo Can't see the ServiceHostingSDKInstallPath environment variable. Please run from a Windows Azure SDK command-line (run Program Files\Windows Azure SDK\^\bin\setenv.cmd^). GOTO :eof ) +cspack ServiceDefinition.csdef /copyOnly /out:PythonRole.csx csrun PythonRole.csx ServiceConfiguration.Local.cscfg if "%ERRORLEVEL%"=="0" ( echo Browse to the port you see above to view the app. To stop all running apps, use "csrun /removeAll" ) \ No newline at end of file