Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Deployment Logic #251

Merged
merged 27 commits into from
Mar 12, 2019
Merged

Conversation

asyasky
Copy link
Collaborator

@asyasky asyasky commented Feb 25, 2019

All the changes required to have a manual Azure deployment to the test deploy (the automated CI changes will be partly on the VSTS side, so they aren't included).

Copy link
Contributor

@morganbr morganbr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also fix the issue we discussed offline

.UseStartup<Startup>()
.Build();
WebHost.CreateDefaultBuilder(args)
//.ConfigureAppConfiguration((ctx, builder) =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be cleaned up?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'll be recreated if I pick "add KeyVault" again in the future, so should be safe to delete.

<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
<InstallAspNetCoreSiteExtension>False</InstallAspNetCoreSiteExtension>
<KeyVaultUri>https://PuzzleServerTestKeyVault.vault.azure.net</KeyVaultUri>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will this change with the region change?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but we're not using it anyway.

ServerCore/Startup.cs Outdated Show resolved Hide resolved
ServerCore/Startup.cs Outdated Show resolved Hide resolved
{
app.UseBrowserLink();
app.UseDeveloperExceptionPage();
PuzzleServerContext.UpdateDatabase(app);
}
else if (env.IsProduction() && Environment.GetEnvironmentVariable("WEBSITE_SITE_NAME") == "Puzzlehunt")
{
app.UseBrowserLink();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably don't need this in production or staging

ServerCore/Startup.cs Outdated Show resolved Hide resolved
(options => options.UseLazyLoadingProxies()
.UseSqlServer(configuration.GetConnectionString("PuzzleServerSQLConnectionString")));
}
else if (env.IsProduction() && Environment.GetEnvironmentVariable("WEBSITE_SITE_NAME") == "puzzlehunt")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we checking site name instead of just the environment for these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because when I did only the environment I had problems.

@asyasky asyasky merged commit c71ae40 into PuzzleServer:master Mar 12, 2019
@asyasky asyasky deleted the AddAzureEnvironmentCheck branch March 12, 2019 04:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants