This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class HostingEnvironmentExtensions | |
{ | |
public static void ConfigureAWSEnvironment(this IHostingEnvironment env) | |
{ | |
var awsEnvVariablePath = "C:\\Program Files\\Amazon\\ElasticBeanstalk\\config"; | |
var awsEnvVariableFile = "containerconfiguration"; | |
if (!File.Exists(awsEnvVariablePath + "\\" + awsEnvVariableFile)) | |
return; //não executar em dev | |
var builder = new ConfigurationBuilder() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifestVersion": 1, | |
"deployments": { | |
"aspNetCoreWeb": [ | |
{ | |
"name": "api-core", | |
"parameters": { | |
"appBundle": "webapp.zip", | |
"iisPath": "/", | |
"iisWebSite": "Default Web Site" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"manifestVersion": 1, | |
"deployments": { | |
"aspNetCoreWeb": [ | |
{ | |
"name": "api-core", | |
"parameters": { | |
"appBundle": "webapp.zip", | |
"iisPath": "/", | |
"iisWebSite": "Default Web Site" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Target Name="MyPostCompileTarget" AfterTargets="AfterPublish"> | |
<Exec Command="gulp aws:prepareoutput" /> | |
<Exec Command="gulp aws:zip:package" /> | |
<Exec Command="gulp aws:postpackage:clean" /> | |
<Exec Command="gulp clean:aws:publish" /> | |
</Target> |