Difference between revisions of "Publish Project to AWS"

From MgmtWiki
Jump to: navigation, search
(Solution)
(Deployment File)
Line 10: Line 10:
 
===Deployment File===
 
===Deployment File===
 
* [https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-manifest.html Running multiple applications and ASP.NET core applications with a deployment manifest]
 
* [https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/dotnet-manifest.html Running multiple applications and ASP.NET core applications with a deployment manifest]
 +
* name file aws-windows-deployment-manifest.json in the project directory with "Build Action" : Content and "Copy to Output Directory" : Copy always.
  
 
  {
 
  {
Line 18: Line 19:
 
         "name": "my-dotnet-core-app",
 
         "name": "my-dotnet-core-app",
 
         "parameters": {
 
         "parameters": {
           "archive": "dotnet-core-app.zip",
+
           "archive": "dotnet-core-app.zip"
          "iisPath": "/"
 
 
         }
 
         }
 
       }
 
       }

Revision as of 12:11, 5 June 2020

Full Title or Meme

Build and zip a Visual Studio dot net core 2.1+ Project for publication to Amazon Web Services.

Context

Problems

Solution

  1. Prepare a project with all dependencies marked.
  2. Add a deployment file (see section below)

Deployment File

{
 "manifestVersion": 1,
 "deployments": {
   "aspNetCoreWeb": [
     {
       "name": "my-dotnet-core-app",
       "parameters": {
         "archive": "dotnet-core-app.zip"
       }
     }
   ]
 }
}

References