-
-
Save wilson29thid/8f0dfbd5006b5fe2040a013c27921001 to your computer and use it in GitHub Desktop.
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
<?php if (!defined('APPLICATION')) exit(); | |
if (c('Garden.Installed')) { // I tried commenting this out | |
saveToConfig('Debug', getenv('DEBUG'), false); | |
saveToConfig('Garden.UpdateToken', getenv('UPDATE_TOKEN'), false); | |
saveToConfig('Garden.Title', 'Overwritten by bootstrap', false); | |
saveToConfig('Database.Host', getenv('DB_HOSTNAME'), false); | |
saveToConfig('Database.Name', getenv('DB_DATABASE'), false); | |
saveToConfig('Database.User', getenv('DB_USERNAME'), false); | |
saveToConfig('Database.Password', getenv('DB_PASSWORD'), false); | |
saveToConfig('Garden.Cookie.Salt', getenv('COOKIE_SALT'), false); // I tried using a string instead of getenv here | |
saveToConfig('Garden.Cookie.Domain', getenv('COOKIE_DOMAIN'), false); | |
// TODO: Replace these with getenv | |
saveToConfig('Garden.Email.SupportName', 'YOUR NAME', false); | |
saveToConfig('Garden.Email.SupportAddress', 'YOUR EMAIL ADDRESS', false); | |
saveToConfig('Garden.Email.UseSmtp', '1', false); | |
saveToConfig('Garden.Email.SmtpHost', 'smtp.gmail.com', false); | |
saveToConfig('Garden.Email.SmtpUser', 'YOUR EMAIL ADDRESS', false); | |
saveToConfig('Garden.Email.SmtpPassword', 'PASSWORD TOKEN', false); # Get this in Gmail etc. | |
saveToConfig('Garden.Email.SmtpPort', '465', false); | |
saveToConfig('Garden.Email.SmtpSecurity', 'ssl', false); | |
saveToConfig('Garden.Registration.CaptchaPrivateKey', 'YOUR KEY', false); | |
saveToConfig('Garden.Registration.CaptchaPublicKey', 'YOUR KEY', false); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment