Closed renoirb closed 9 years ago
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.
cp ~/snapshot.tar.gz /srv/webplatform/shared/backups/
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 discourse
cli utility
./launcher enter app
discourse enable_restore
Find the mounted backup file from within the container
ll /shared/backups/default/
Make sure /shared/backups/foo.tar.gz is readable by can read
chmod o+r /shared/backups/default/foo.tar.gz
discourse restore foo.tar.gz
discourse disable_restore
Remap domain name
discourse remap discourse.specifiction.org discuss.webplatform.org
Then, work on user uploads and regenerate assets. That’ll make sure ;
rake uploads:clean_up
rake posts:rebake
Refer to
@darobin here are the notes on how to make the customizations.
I wonder, at the footer, should we change the @specifiction
Twitter handle to @WebPlatform
?
CC @shepazu
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
Dropping the ball, discourse.wicg.io has been put in place.
This is the parent task about migrating Specifiction Discourse installation into WebPlatform infrastructure.
Estimated steps
This should complete what’s noted in commit webplatform/www.webplatform.org@a548a5fa61e6b18b96a1790fb9a817a97fa02f4a
In
Preferences -> Admin -> Settings
:private/pillar/accounts/production.sls
notes.https://discusspolling.webplatform.org/
In
Preferences -> Admin -> Customize
:CSS/HTML
CSS
body (what was in "Migrated from Site Text" at body);
In states
Edit
code/files/discuss/app.yml.jinja
, replace this block;Ensure that Docker PostgreSQL VM (
dbpostgres
) has its private IP updated inprivate/pillar/accounts/production.sls
private pillars. In contrast to MySQL config, this is where the Discourse config will get which PostgreSQL database server to connect to.