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.
+
* name file aws-windows-deployment-manifest.json in the project directory with "Build Action" : "Content" and "Copy to Output Directory" : "Copy always"
 
* Bundle the manifest and site archive in a ZIP archive to create a source bundle.
 
* Bundle the manifest and site archive in a ZIP archive to create a source bundle.
  

Revision as of 12:24, 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"
       }
     }
   ]
 }
}
Example dotnet-core-bundle.zip
-- aws-windows-deployment-manifest.json
-- dotnet-core-app.zip

References