This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tech_public:webdev [2024/12/13 14:14] – ↷ Page name changed from tech_public:contrastchecker to tech_public:webdev jasonwch | tech_public:webdev [2025/02/27 17:50] (current) – [Flarum migration] jasonwch | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Website dev ====== | ====== Website dev ====== | ||
| + | ~~stoggle_buttons~~ | ||
| ===== Color contrast check ===== | ===== Color contrast check ===== | ||
| Line 10: | Line 11: | ||
| https:// | https:// | ||
| + | |||
| + | ===== Export icon list from Fontawesome ===== | ||
| + | \\ | ||
| + | https:// | ||
| + | \\ | ||
| + | \\ | ||
| + | https:// | ||
| + | |||
| + | Using Node js: | ||
| + | - download icons.json file | ||
| + | - execute following code in node js: | ||
| + | |||
| + | < | ||
| + | var json = require(" | ||
| + | var FA6Json = {}; Object.keys(json).forEach(iconName => { const icon = json[iconName]; | ||
| + | </ | ||
| + | |||
| + | ===== Local Apache HTTPS SSL ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ===== Flarum migration ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | **<fs x-large> | ||
| + | - Database \\ PhpMyAdmin \\ mysqldump -u mysql_user -p DATABASE_NAME > backup.sql | ||
| + | - composer.json | ||
| + | - composer.lock | ||
| + | - config.php files, | ||
| + | - extend.php for those who added any customizations, | ||
| + | - assets directory. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | **<fs x-large> | ||
| + | - Install a bare flarum as per the instructions here without configuring it. | ||
| + | - Copy over your composer.json and composer.lock files. | ||
| + | - Run composer install --prefer-dist --no-dev | ||
| + | - Copy over your config.php file. | ||
| + | - Restore your database: | ||
| + | - PhpMyAdmin | ||
| + | - b. mysql -u mysql_user -p DATABASE < backup.sql | ||
| + | - Copy over your flarum-root/ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | **<fs x-large> | ||
| + | |||
| + | < | ||
| + | USE YourFlarumDataBaseName; | ||
| + | ALTER TABLE posts DROP INDEX content; | ||
| + | CREATE FULLTEXT INDEX content ON `posts` (`content`) WITH PARSER ngram; | ||
| + | </ | ||
| + | |||
| + | < | ||
| + | USE YourFlarumDataBaseName; | ||
| + | ALTER TABLE discussions DROP INDEX title; | ||
| + | CREATE FULLTEXT INDEX title ON `discussions` (`title`) WITH PARSER ngram; | ||
| + | </ | ||
| + | |||