This file contains hidden or 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
///NCONFIG_ALIAS is set in Azure as Environment variable | |
var configAlias = Environment.GetEnvironmentVariable("NCONFIG_ALIAS"); | |
if(string.IsNullOrEmpty(configAlias)) //Use the computer name for default custom config | |
configAlias = Environment.GetEnvironmentVariable("COMPUTERNAME"); | |
// Set up configuration sources. | |
var builder = new ConfigurationBuilder() | |
.SetBasePath(appEnv.ApplicationBasePath) | |
.AddJsonFile("appsettings.json") | |
.AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) //http://docs.asp.net/en/latest/fundamentals/environments.html |
This file contains hidden or 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
#default login for Azure is azureuser | |
cd ~ | |
sudo yum update | |
sudo yum install java-1.7.0-openjdk -y | |
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.90.0.Beta1.tar.gz -O elasticsearch.tar.gz | |
tar -xf elasticsearch.tar.gz | |
rm elasticsearch.tar.gz | |
mv elasticsearch-* elasticsearch |