Reputation: 59234
I know that Azure uses some runtime magic to override the connection string for my .NET applications. However, I'm trying to port over a wordpress blog and it appears the connection information is stored in a file called wp-config.php. If I input the proper values for the blog into that file then all works fine, but I want to deploy from a public github repository. How do I exclude the connection info from wp-config.php and allow azure to override it at runtime?
Upvotes: 4
Views: 877
Reputation: 374
Unless your repository is private you will need to store the wp-config.php file on your Windows Azure instance (or upload it after the fact somehow). Then when the files are pulled into that directory from Github the wp-config.php (assuming no wp-config.php file is in the repo) file will already exist with the connection details.
If you have a private Github repository then it is probably safe to leave the wp-config.php file and values in the repository itself, as only users you give access to the repo can see it.
Upvotes: 2