Skip to content

Commit db1bdb2

Browse files
authored
Add document about how to deploy locally (#9333)
1 parent e031d69 commit db1bdb2

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,26 @@ Now run the NuGet Gallery:
2727
Refer to [our documentation](./docs/) for information on how to develop the frontend, use AAD, and more.
2828

2929
## Deploy
30+
### Deploy to Azure
3031

3132
You will find instructions on how to deploy the Gallery to Azure [here](https://github.com/NuGet/NuGetGallery/blob/master/docs/Deploying/README.md).
3233

34+
### Deploy locally
35+
After you succeed in running the NuGet Gallery, you can create a publish profile to deploy locally (such as your local Windows computer).
36+
37+
The steps are:
38+
1. Select the `NuGetGallery` project in Solution Explore of Visual Studio.
39+
2. Right click the project, and then click `Publish` in the pop-up menu. Create a publish profile and make sure the Target is set to `Folder`.
40+
3. Copy the contents of the `Target Location` to any folder you want. For the following example, assume the folder is `C:\ContosoSoftware\NuGetGallery`.
41+
4. Execute the command below to start the web app (note that the parameter `/path` of iisexpress.exe only supports absolute paths on Windows).
42+
```cmd
43+
"C:\Program Files\IIS Express\iisexpress.exe" /path:C:\ContosoSoftware\NuGetGallery
44+
```
45+
46+
Now you can access the local website with a web browser. The URL is `https://localhost`.
47+
48+
After you deploy it, you don't need using Visual Studio to run it anymore.
49+
3350
## Contribute
3451
3552
If you find a bug with the gallery, please visit the [Issue tracker](https://github.com/NuGet/NuGetGallery/issues) and

0 commit comments

Comments
 (0)