Repository navigation
Description
This is the parent task about migrating Specifiction Discourse installation into WebPlatform infrastructure.
Estimated steps
- Create Piwik tracking code, add in the notes below
- Make a full install of Discourse, made via Salt Stack, configuring automatically Docker
- Document how to migrate a backup
- Have fully functional site, without broken images
- Create key sets for connected OAuth reliers: [Facebook, GitHub, Twitter, Google, Yahoo]
- Make discourse.specifiction.org redirects to equivalent on https://discuss.webplatform.org
- Until migration is complete; Create sticky post warning that its not migrated yet
Please do not use this forum just yet. While we plan to migrate discourse.specifiction.org into discuss.webplatform.org, the migration isn’t completed yet. Any content you write here WILL be overwritten.
Dependencies
- Sub tasks
- Setup a mailbox w/ POP3 access for Discourse to use #161 so when a user sends an email to reply to a thred, email gets converted into a reply
- Make Discourse have automatic database backup #154 setup backups into DreamObjects S3 bucket
- Discourse get real IP Address behind Fastly #163 get real IP Address behind Fastly
Time estimate
- Spent: 16h (so far)
Work notes
This should complete what’s noted in commit webplatform/www.webplatform.org@a548a5f
In Preferences -> Admin -> Settings:
- Required
- Title: WebPlatform Discuss
- Contact email: team-webplatform-admin@w3.org
- Notification email: notifier-discuss@webplatform.org
- Favicon url: https://www.webplatform.org/logo/logo.png
- Apple touch icon url: https://www.webplatform.org/logo/wplogo_nocopy.png
- logo url: https://www.webplatform.org/logo/discuss.png
- logo small url: https://www.webplatform.org/logo/discuss_w.png
- Login
- Refer to
private/pillar/accounts/production.slsnotes.
- Refer to
- long polling base url:
https://discusspolling.webplatform.org/ - pop3 polling host: TODO Setup a mailbox w/ POP3 access for Discourse to use #161
- pop3 polling port: TODO Setup a mailbox w/ POP3 access for Discourse to use #161
- pop3 polling username: TODO Setup a mailbox w/ POP3 access for Discourse to use #161
- pop3 polling password: TODO Setup a mailbox w/ POP3 access for Discourse to use #161
In Preferences -> Admin -> Customize:
- Colors (create one Color scheme entry), use:
- primary: 333
- tertiary: 30B4C5
- header background: 58595B
- header primary: F0EBDD
- highlight: FFC621
- danger: D02E27
- success: 75C9B3
- love: EE677E
- wiki: 30B4C5
- CSS/HTML
- in Migrated from Site Text, copy what’s in body
- Delete Migrated from Site Text, check first if there’s something elsewhere than body
- Create new, let’s call it Discuss, add:
-
CSS
@font-face{ font-family: 'Bitter'; font-weight: normal; src: url('//www.webplatform.org/assets/fonts/bitter-regular-webfont.eot'); src: url('//www.webplatform.org/assets/fonts/bitter-regular-webfont.eot?#iefix') format('embedded-opentype'), url('//www.webplatform.org/assets/fonts/bitter-regular-webfont.woff') format('woff'), url('//www.webplatform.org/assets/fonts/bitter-regular-webfont.ttf') format('truetype'), url('//www.webplatform.org/assets/fonts/bitter-regular-webfont.svg#BitterRegular') format('svg'); } #main .extra-info h1 { font-size: 1.3em; font-family: Bitter; font-weight: normal; }
-
body (what was in "Migrated from Site Text" at body);
<footer id='custom-bottom' class='container'> <p> You can follow <a href='https://twitter.com/WebPlatform'>@WebPlatform</a>, or send feedback to <a href='https://twitter.com/robinberjon'>@robinberjon</a>. </p> </footer> <!-- Piwik --> <script type="text/javascript"> var _paq = _paq || []; _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function() { var u="//stats.webplatform.org/"; _paq.push(['setTrackerUrl', u+'piwik.php']); _paq.push(['setSiteId', 11]); var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0]; g.type='text/javascript'; g.async=true; g.defer=true;g.src=u+'piwik.js';s.parentNode.insertBefore(g,s); })(); </script> <noscript><p><img src="//stats.webplatform.org/piwik.php?idsite=11" style="border:0;" alt="" /></p></noscript> <!-- End Piwik Code -->
-
- Click "Enabled?" checkbox at the bottom right
In states
-
Edit
code/files/discuss/app.yml.jinja, replace this block;- DISCOURSE_SMTP_ADDRESS: localhost + DISCOURSE_SMTP_ADDRESS: {{ smtp }}
-
Ensure that Docker PostgreSQL VM (
dbpostgres) has its private IP updated inprivate/pillar/accounts/production.slsprivate pillars. In contrast to MySQL config, this is where the Discourse config will get which PostgreSQL database server to connect to.accounts: discourse: db: hostname: 10.10.10.192
Activity
renoirb commentedon Apr 30, 2015
Here is some preliminary notes on how one can restore a Discourse instance and change the domain name. Notes will be cleaned up later.
Roughly based on Move your Discourse instance to a different server post. But without using the web UI. Because sysadmins prefers terminal.
IMPORTANT: Make SURE the backup dump was generated from the same Discourse version the one you’ll import it into.
Copy from host backup into shared folder. Imagine you uploaded via SSH in your host home directory.
Note that the folder
/srv/webplatform/discuss/shared/standalone/backups/from the docker host would end up to be in/shared/backups/inside the container.Enter the VM, make sure enable_restore is run from
discoursecli utilityFind the mounted backup file from within the container
Make sure /shared/backups/foo.tar.gz is readable by can read
Remap domain name
Then, work on user uploads and regenerate assets. That’ll make sure ;
Refer to
renoirb commentedon Apr 30, 2015
@darobin here are the notes on how to make the customizations.
I wonder, at the footer, should we change the
@specifictionTwitter handle to@WebPlatform?CC @shepazu
[-]Discuss ensure theme settings adjustments after migration import[/-][+]Discuss prepare migration and adjust settings[/+]renoirb commentedon Apr 30, 2015
Sorry for double post; update I created accounts using WebPlatform accounts, where it was possible.
What’s missing:
"Apps" account owner relationships;
/cc @shepazu @darobin
renoirb commentedon Aug 4, 2015
Dropping the ball, discourse.wicg.io has been put in place.