'IDHost' => getenv("MAILGUN_DOMAIN"), // Generally this will be the domain name of your website (aka ) 'host' => getenv("MAILGUN_SMTP_SERVER"), // could also be an IP address.
![media wiki tab right media wiki tab right](https://miro.medium.com/max/1280/1*jwh8-Ny8eUqyMZfZAoYOjg.png)
for providing this great resource! I also configured SMTP mail support with the MailGun add-on by adding the following to LocalSettings.php: $wgSMTP = array(.Then you'll have to add the skin explicitly to the bottom of LocalSettings.php like the instructions on the deployed site say to do (but what is the default skin for if it's not used?): wfLoadSkin( 'Vector' ) Ĭompare it to mediawiki's repo to see the differences: Credits
Media wiki tab right install#
You can install the vector skin by adding it to the composer.json - add a line something like this (followed by composer update): "mediawiki/vector-skin": "dev-wmf/1.30.0-wmf.2", Now you can add, check in, push the new file "LocalSettings.php" git add -f "LocalSettings.php" Move the $wgSecretKey into an ENV var: $wgSecretKey = getenv("SECRET_KEY") Īlso move the $wgUpgradeKey into an ENV var: $wgUpgradeKey = getenv("UPGRADE_KEY") $url = parse_url(getenv("CLEARDB_DATABASE_URL")) Replace the # Database settings sesction of LocalSettings.php with this ( based on this): # Database settings DO NOT check in LocalSettings.php with the passwords still in it. Once you're done, you'll have to download LocalSettings.php and change some things before checking it into the repo. Put in the database information where requested. Now go to your deployed Heroku app, and follow the setup wizard. Get the database information from the CLEARDB_DATABASE_URL ready to use (and there is no table prefix) heroku config The free database isn't enough, you'll probably need the cheapest paid one ('punch', not 'ignite').
![media wiki tab right media wiki tab right](https://www.inmotionhosting.com/support/wp-content/uploads/2012/12/edu_mediawiki_101_manage-users-mediawiki_mediawiki-create-account-3.gif)
Install an instance of ClearDB, either through the Heroku Dashboard or CLI. Generate and add to the repo a composer.lock brew install composer Installing through brew gets a newer version of openssl bundled into your install of php. Packagist require you use a not-old version of openssl in your php, or else it won't let you download packages from it. (I wish I knew more about why they didn't check that in?)īefore being able to generate a composer.lock, you may need to get php installed using brew see here (brew is for OSX). Mediawiki's repo doesn't have a composer.lock in it, and Heroku requires one.
![media wiki tab right media wiki tab right](https://i.stack.imgur.com/UX30e.jpg)
( master worked fine for me, but you might want the last stable tag?) git clone
Media wiki tab right how to#
How to get set up with Mediawiki running on Heroku. Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book