.config | ||
custom | ||
locales | ||
neko | ||
packages | ||
scripts | ||
.dockerignore | ||
.gitignore | ||
biome.json | ||
COPYING | ||
docker-compose.yml | ||
Dockerfile | ||
gulpfile.js | ||
LICENSE | ||
package.json | ||
patrons.json | ||
pnpm-workspace.yaml | ||
README.md | ||
update.sh |
Misskey ã®ãã©ãŒã¯ã® Firefish ã®ãã©ãŒã¯ã§ãã
æ¬å®¶ Firefish ã®ãªããžããªã¯ãã¡ã
main
ãã©ã³ãã§ã¯ãã®ãã©ãŒã¯ã«é©çšãããå€æŽã®ã³ãããå±¥æŽã®ã¿ããhistory
ãã©ã³ãã§ã¯æ¬å®¶ Firefish ã®ã³ããããå«ãå®å
šãªã³ãããå±¥æŽãé²èŠ§ã§ããŸãã
ãã®ãã©ãŒã¯ã®æ©èœã«ã€ããŠèª¿ã¹ãã«ã¯ main
ãã©ã³ãããã³ãŒãã®èè
ã«ã€ããŠèª¿ã¹ãã«ã¯ history
ãã©ã³ããåç
§ããŠãã ããã
å€æŽç¹
äž»èŠãªå€æŽç¹
- æ€çŽ¢ãã£ã«ã¿ãŒã匷åäž
from:me
ãæ€çŽ¢ã¯ãšãªã®æ«å°Ÿã«ã€ãããšèªåã®æçš¿ã®ã¿ãæ€çŽ¢ã§ããããã«å€æŽ- æ€çŽ¢ã¯ãšãªã®äŸ:
äºå® from:me
- ããŒã ã»ãã©ãã¯ãŒéå®ã»ãã€ã¬ã¯ãã»ç§å¯ã®æçš¿ãå«ãèªåã®å šãŠã®æçš¿ããæ€çŽ¢ããŸã
- æ€çŽ¢ã¯ãšãªã®äŸ:
- å
šææ€çŽ¢ã®ãšã³ãžã³ã PGroonga ã«å€æŽ
- PGroonga ã®ã€ã³ã¹ããŒã«ãå¿ èŠã«ãªããŸãïŒè©³ããã¯ãã®æçš¿ãã芧ãã ãã
- Meilisearch, Elasticsearch, Sonic ã¯äœ¿ããŸãã
- ãç§å¯ããšããå
¬éç¯å²ãè¿œå
- å®å ç¡ãã®ãã€ã¬ã¯ãæçš¿ãèšãæããŠããã ãã§ã
- æ¢åã®æçš¿ãåé€ããã«åŸããç§å¯ã«ããããšãã§ããŸã
- ããã©ãŒãã³ã¹åäžã®ããã¢ã¯ãã£ããŠãŒã¶ãŒä»¥å€ã®ãã£ãŒãçæãç¡å¹å
- ãµãŒãããŒãã£ãŒè£œã¯ã©ã€ã¢ã³ããåããªããªãã®ãé»æ¢ãããã API ã®ãšã³ããã€ã³ãã¯æ®ããŠããŸãããå©ããŠã
0
ã䞊ãã é åããè¿ããŸããã
- ãµãŒãããŒãã£ãŒè£œã¯ã©ã€ã¢ã³ããåããªããªãã®ãé»æ¢ãããã API ã®ãšã³ããã€ã³ãã¯æ®ããŠããŸãããå©ããŠã
- ã¢ãã¬ãŒã¿ãŒã§ãªãäžè¬ãŠãŒã¶ãŒã«ãã«ã¹ã¿ã çµµæåã®ç®¡çæš©ãäžããããããã«
- ã«ã¹ã¿ã çµµæåã®ç®¡çã倧å€ãªãµãŒããŒç®¡çè ãããããããããã£ããã£ãã®ã§ãã®æ©èœãè¿œå ããã¹ãã§ã¯ãªããä»ã®éçºè ã«èšãããšããããŒã«æ©èœã®å®è£ ãåŸ ã€ã¹ãã ãšèšãããŠããŸã£ãããFirefish ã®ããŒã«æ©èœã¯çŸç¶ã§ã¯ä»æ§ããŸã åºãŸã£ãŠãããå®è£ ãŸã§ã«æéãæãããšèãããããã
- 以äžã®æš©éãäžããããŸã
- äžèš±å¯: çµµæåã®ç®¡çãèš±å¯ããªã
- è¿œå : æ°ããçµµæåã®è¿œå ã®ã¿ãèš±å¯ãã
- è¿œå ãšå€æŽ: ãè¿œå ãã«å ããæ¢åã®ã«ã¹ã¿ã çµµæåã®ååã»ã«ããŽãªã»ã¿ã°ã»ã©ã€ã»ã³ã¹ã®ç·šéãèš±å¯ãã
- å šãŠèš±å¯:ãè¿œå ãšå€æŽãã«å ããæ¢åã®ã«ã¹ã¿ã çµµæåã®åé€ãèš±å¯ãã
- ã¢ãã€ã«è¡šç€ºã®äžéšã®ãŠã£ãžã§ãããã¿ã³ãåèªã¿èŸŒã¿ãã¿ã³ã«å€æŽå¯èœã«
- ã¹ããŒããã©ã³ã§ãŠã£ãžã§ããã¯äœ¿ããªããã©åèªã¿èŸŒã¿ã¯ãããããã人ã¯ããã
- ã¢ãã€ã«è¡šç€ºã®äžéšã®ãã£ãããã¿ã³ãã¢ã«ãŠã³ãåãæ¿ããã¿ã³ã«å€æŽå¯èœã«
- ããç¡ã㧠PWA ã§è€æ°ã¢ã«ãŠã³ãã䜿ãããšãããšè ±éçã«ãªã
- ããŒã«ã«ã¿ã€ã ã©ã€ã³ã®äœçœ®ãã°ããŒãã«ã¿ã€ã ã©ã€ã³ã®çŽåã«ç§»å
- ããŒã«ã«ã¿ã€ã ã©ã€ã³ããããœãŒã·ã£ã«ã¿ã€ã ã©ã€ã³ã®ã»ãã䜿ãããããšèãããã
现ããå€æŽç¹
- iOS ã§å¹æé³ãšé³æ¥œã®åçãå¹²æžããåé¡ãä¿®æ£ïŒMisskey ããåã蟌ã¿ïŒ
- æ¬å®¶ã«ãããŒãžãªã¯ãšã¹ããåºããŠããŸã (!10641)
- HTML ã®ã³ãŒãã«å
¥ãã³ã¡ã³ãã¢ãŒããåé€
- å šããŒãžã«ãããªã®å ¥ããªããŠãâŠâŠ
- ããã©ã«ãã§ã¯ãã€ãã¬ãŒã·ã§ã³ãç¡å¹ã«
- ãã°ã€ã³ããŠããªããã°æçš¿æ€çŽ¢ãã§ããªãããã«
- æ»æ察çã®ãã
- ãããã®ããã§ãµãŒãããŒãã£ãŒã¯ã©ã€ã¢ã³ãã«äžå ·åãåºãå Žåã«ã¯å€æŽãããããããŸãã
- æçš¿ãšæçš¿ã®éã空ããŠè¡šç€ºããèšå®ãããã©ã«ãã§ã¯ç¡å¹ã«
- Enter ããŒã®ã¿ã§ãã£ãããéä¿¡ããèšå®ãããã©ã«ãã§ã¯ç¡å¹ã«
- 管çè ã¢ã«ãŠã³ããåŒã£è¶ãã§ããããã«
- ããã©ã«ãã®ã¢ã€ã³ã³ã®å€ªãã现ãã«å€æŽ
- ã¹ã¿ã€ã«ãéžæããç»é¢ã®ãµã³ãã«ã®ã¢ã€ã³ã³ãæã«å€æŽ
- ãªã¢ã¯ã·ã§ã³ã®å±¥æŽãå
¬éããèšå®ãããã©ã«ãã§æå¹ã«
- ç§ãã¿ããªã®ãªã¢ã¯ã·ã§ã³ãèŠãããšæã£ãŠãããã
- ãã¡ããèšå®ããç¡å¹ã«ã§ããŸã
- æšæºã®ãã©ã³ãã Atkinson Hyperlegible ã«ããå€æŽãåãæ¶ã
- ãã©ã³ããå€æŽãããå Žåã¯ãã®ã«ã¹ã¿ã CSS ã䜿ã£ãŠãã ãã
- ç°¡äœäžæã®ç¿»èš³ãååšããªãé
ç®ã§ã¯ç¹äœäžæã®ç¿»èš³ãçšããããã«ïŒæ¬å®¶ã§ã¯éïŒ
- ãµããã¯ãããç¬èªæ©èœã«äœ¿ãããŠããã©ãã«ã®ç¹äœäžæèš³ãæäŸããŠãã ãã£ããã
- ãªã³ã©ã€ã³ã¹ããŒã¿ã¹ãéå
¬éã®ã¢ã«ãŠã³ãã«ã¯ã¹ããŒã¿ã¹ãè¡šãäžžå°ã衚瀺ããªãããã«
- ç°è²ã®äžžã衚瀺ãããŠããŠããããªã«å¬ãããªããã
- ããã©ã«ãã§æ€çŽ¢ãšã³ãžã³ããã®ã¯ããŒã«ãæåŠããããã«å€æŽ
- æ€çŽ¢ã® MFM ã§äœ¿çšããæ€çŽ¢ãšã³ãžã³ãèšå®ããå€æŽå¯èœã«
- 以äžã®éžæè¢ããéžã¹ãŸã
- DuckDuckGo (duckduckgo.com)
- SearXNG (searx.be)
- Google Search (google.com)
- Moon Search (search.naskya.net)
- ãµãŒããŒã®æçš¿æ€çŽ¢
- 以äžã®éžæè¢ããéžã¹ãŸã
- ãµãŒããŒèšå®ã®åæå€ãå€æŽ
- æ°èŠç»é²ãç¡å¹å
- æ°èŠç»é²ãåãä»ããããªãã®ã«ç¡å¹åããåã«ã¢ã«ãŠã³ããç»é²ãããŠããŸãããšãé²ããã
- ãã©ã€ããŒãã¢ãŒãïŒé£åããªãã¢ãŒãïŒãæå¹å
- ãµãŒããŒã®æºåãæŽã£ãŠããªããã¡ã«ãªã¢ãŒããµãŒããŒã«èªèãããŠããŸãããšãé²ããã
- ãµãŒããŒã¡ããªã¯ã¹ã®è¡šç€ºãæå¹å
- æå¹åããŠãããµãŒããŒãå€ããã
- ã©ã³ãã ãªã¢ã€ã³ã³ã®çæãç¡å¹å
- ã©ã³ãã ãªã¢ã€ã³ã³ã¯ãããªã«ãããããªããã
- æ°èŠç»é²ãç¡å¹å
- 身ãã¬é²æ¢ã®èšå®ãè¿œå
- ããããããªãããâ¯â¯ããããåºãªãããã«ã§ããããã«
- èªåã®ã¢ã€ã³ã³ãé衚瀺ã«ã§ããããã«
- èªåã®ååãšIDãé衚瀺ã«ã§ããããã«
- ååãšIDã®éšåã空çœã«ãªãã®ã§æ £ãããŸã§æéãæãããŸã
- ãŠãŒã¶ãŒããŒãžã®ããã©ã«ãã®ã¿ãããæçš¿ãšè¿ä¿¡ãã«å€æŽ
- ã¿ã€ã ã©ã€ã³ã«ãªãã©ã€ã衚瀺ããèšå®ãããã©ã«ãã§æå¹ã«
- æªèªéç¥ã®ã¿ãããªã¢ã¯ã·ã§ã³ã®éç¥ã衚瀺ããã¿ãã«å€æŽ
- æªèªã®ã¿ãã䜿ã£ãŠã人ããïŒ
- MFM ããŒãã·ãŒãã®ãã¿ã³ãæçš¿ç»é¢ããå·Šäžã®ãã«ãã¡ãã¥ãŒã«ç§»å
- ãããããããã«æçš¿ç»é¢äžéšã®ãã¿ã³ã 2 段ã«ãªã£ãŠããŸãããšããããã
- ããã©ããŒãããŠããŸããã®è¡šç€ºãç®ç«ãããããããã«
- ããã©ã«ãã®è¡šç€ºã¯ç®ç«ããªããã
- æ倧 15 件ã®æçš¿ãåºå®ã§ããããã«
- 5 件ã¯å°ãªããšæã£ããã
- æçš¿ãã¿ã³ã巚倧ã«ã§ããããã«
- mstdn.maud.io / mstdn.poyo.me ã®æ©èœ ãç䌌ããŸãã
- ã¢ã³ããã«ãã©ããŒäžã®ãŠãŒã¶ãŒã®ããŒã æçš¿ã衚瀺ãã
- ãã©ããŒäžã®ãŠãŒã¶ãŒã®æçš¿ã¯èŠãããã
- ç«ã®ã¢ã«ãŠã³ãã¯ã¢ã€ã³ã³ãåžžã«äžžã衚瀺ãã
- ãã®ã»ãããããããã
- NSFW ã¡ãã£ã¢ãé ãèšå®ããã©ãŠã¶ããšã®èšå®ãããã©ãŠã¶ããšãã€ã¢ã«ãŠã³ãããšã®èšå®ã«å€æŽ
- ããã®ã¢ã«ãŠã³ãã§ã¯ NSFW ã®ç»åãåžžã«è¡šç€ºããããã¿ãããªéèŠãç§ã«ãã£ããã
- ã€ã³ã¹ã¿ã³ã¹ãã£ãã«ãŒãããã©ã«ãã§åžžã«è¡šç€ºãã
- ãã®ã»ãã楜ãããšæã£ããã
- èã¡ãããŠã£ãžã§ããã®åŸ©æŽ»
- ã€ã³ã¹ã¿ã³ã¹ãã£ãã«ãŒã®ããŒã«ãããã«ãœãããŠã§ã¢ã®ããŒãžã§ã³çªå·ã衚瀺ãã
- æ°ã«ãªããã
- ããããã¿ã³ïŒãªã¢ã¯ã·ã§ã³ããã«ãŒã®å·Šã«ãããâãšãðã®ãªã¢ã¯ã·ã§ã³ãã¯ã³ã¯ãªãã¯ã§æŒãããã€ïŒã§ç©ºã®ãªã¢ã¯ã·ã§ã³ïŒMastodon ããµããŒã§éã£ãŠãããã®ãšåãïŒã§ã¯ãªãæ¬åœã«ãã®çµµæåãªã¢ã¯ã·ã§ã³ïŒâãšãðãšãïŒãéãããã«ãã
- ææ°ã® Misskey ã§ã¯ããã©ã«ããªã¢ã¯ã·ã§ã³ãâ€ïžã«ãªã£ããã空ã®ãªã¢ã¯ã·ã§ã³ãéããšâ€ïžãšããŠè¡šç€ºãããŠããŸãããâ€ïžã¯ ââŽðâ¯... ãšããæ°æã¡ãäŒããããã®ãªã¢ã¯ã·ã§ã³ã§ãã£ãŠãã ã®ããããããšã¯ç°ãªãããããã®ãã¿ã³ã§â€ïžã¯éããããªããã
- éç¥ã®è¡šç€ºãç°¡æœã«ãã
- ãããªã¢ã¯ã·ã§ã³ããŸããããšããªãã©ã€ã®äžã«ããçœãç·ãšããéªéã«æãããã
- äžéšã®è¡šç€ºã®è²ã Misskey ã®éç¥ã®è²ãå人çã«å¥œã¿ã ã£ãã®ã§æ»ãã
- æ¯æŽè
ãªã¹ãããã¡ã€ã«ããèªã¿èŸŒã
- å€éšã®ãµãŒããŒãèœã¡ããšãŠãŒã¶ãŒããŒãžãéããªããªãããšãé²ããã
- é²èŠ§æ³šæã®æ³šéãšç»åã®ä»£æ¿ããã¹ããã¢ã³ããã§èª¿ã¹ã察象ã«ãã
ãããããã§ã¢ã³ãããäœãã
- ã€ã³ããã¯ã¹æåŠã«
noindex
ã«å ããŠnofollow,noarchive,nocache,noimageindex
ãæå® - ã€ã³ã¹ã¿ã³ã¹ãã£ãã«ãŒã«è¡šç€ºãããµãŒããŒã®ã¢ã€ã³ã³ãšã㊠favicon ãåªå
ãã
- favicon ã®ã»ããããã«ã¹ã¿ãã€ãºãããŠãããã
- 誀çããããäœçœ®ã«ãããã©ããŒãã¿ã³ãé ãèšå®ãè¿œå
- ãã©ããŒã誀çãããšæ²ãããã
- ããã©ã«ãã® robots.txt ã®èšå®ãå€æŽããã¯ããŒã©ãŒãæåŠããããã«
- joinfirefish ãš FediDB ã®ã¯ããŒã©ãŒã¯èš±å¯ããŠããŸã
- æçš¿ãã¬ãã¥ãŒãããã©ã«ãã§ãªã³ã«ããèšå®ãè¿œå
- ããŒãžã§ã³çªå·ã«ææ°ã®ã³ãããã®æ¥ä»ãšã³ãããããã·ã¥ã®é æåãå«ãŸããããã«
- æ£ç¢ºãªããŒãžã§ã³ãåãããšãã°ä¿®æ£ã«åœ¹ç«ã€ãã
æ€èšŒäžã®å€æŽç¹
ããŸãåããŠãããã ã£ããæ¬å®¶ã« push ãããŸã
- Docker ãŠãŒã¶ãŒã PWA ã®ã¢ã€ã³ã³ãå€æŽã§ããããã«
- 以äžã®ç»åãã¡ã€ã«ãè¿œå ã㊠Docker ã³ã³ãããåèµ·åãããã©ãŠã¶ã®ãã£ãã·ã¥ãåé€ã㊠PWA ãã€ã³ã¹ããŒã«ããŠã¿ãŠãã ãã
custom/assets/favicon.png
- ãµãŒããŒã®ããŒãžã® faviconïŒäžèŸº 32 px ãã 192 px ãããã®æ£æ¹åœ¢ã®ç»åïŒ
custom/assets/favicon.ico
- ICO 圢åŒã® faviconïŒ
ffmpeg -i favicon.png favicon.ico
ãªã©ã§å€æå¯èœïŒ
- ICO 圢åŒã® faviconïŒ
custom/assets/apple-touch-icon.png
- äžèŸº 256 px çšåºŠã®æ£æ¹åœ¢ã®ç»å
custom/assets/icons/192.png
- äžèŸº 192 px ã®æ£æ¹åœ¢ã®ç»å
custom/assets/icons/512.png
- äžèŸº 512 px ã®æ£æ¹åœ¢ã®ç»å
custom/assets/icons/maskable.png
- äžèŸº 512 px çšåºŠã®æ£æ¹åœ¢ã®ç»åïŒç«¯ãåãåãããŠäœ¿ãããå¯èœæ§ãããããäœçœããããšããïŒ
custom/assets/icons/monochrome.png
- äžèŸº 512 px çšåºŠã®æ£æ¹åœ¢ã®ç»åïŒçœé»ã§ãããšããïŒ
- 以äžã®ç»åãã¡ã€ã«ãè¿œå ã㊠Docker ã³ã³ãããåèµ·åãããã©ãŠã¶ã®ãã£ãã·ã¥ãåé€ã㊠PWA ãã€ã³ã¹ããŒã«ããŠã¿ãŠãã ãã
ãã®ãã©ãŒã¯ããæ¬å®¶ Firefish ã«èŒžåºãããå€æŽç¹
ãã®ãã©ãŒã¯ã¯æ¬å®¶ã« push ããåã®ãã¹ãç°å¢ãšããŠã䜿ããããããæçšãªæ©èœã¯ãã茞åºãããŸãïŒãããŠããããªæ©èœã ããæ®ãïŒ
- ãµãŒããŒã®ç®¡çè ãå·Šäžã®ãã«ãã¡ãã¥ãŒã«å©çšèŠçŽä»¥å€ã®ããŒãžãåºå®ã§ããããã«
- äŸåã©ã€ãã©ãªã®ããŒãžã§ã³ãã¢ããããŒã
- AiScript ã®ããŒãžã§ã³ãäžãããŸããïŒ
- çµµæåããã«ãŒã«è¡šç€ºãããã«ã¹ã¿ã çµµæåã®æ€çŽ¢çµæã®ä»¶æ°ãæ倧 100 件ã«å€æŽïŒMisskey ã®å€æŽãåã蟌ã¿ïŒ
- æçš¿äžã«è¡šç€ºãããã€ã³ã¹ã¿ã³ã¹ãã£ãã«ãŒãã¯ãªãã¯ãããšãµãŒããŒæ å ±ãéãããã«
- UI çšã®èšèªãšã¯å¥ã«ãæ皿翻蚳ã«äœ¿çšããèšèªãèšå®å¯èœã«
- UI çšã®èšèªã¯ç¿»èš³å ã®èšèªã®ç¬¬äºåè£ãšããŠäœ¿ãããŸãïŒæçš¿ã®èšèªãšæ皿翻蚳å ã«èšå®ããèšèªãåãã ã£ãå Žåã«ã¯ UI çšã®èšèªã«ç¿»èš³ãããŸãïŒ
- æçš¿èšèªãèªåæ€åºããŠå€åœèªã®æçš¿ã«ç¿»èš³ãã¿ã³ã衚瀺ããèšå®ãè¿œå
- ç¹äœäžæãžã®æ皿翻蚳ãç¹äœåã§è¡šç€ºãã
- DeepL 翻蚳ã LibreTranslate ã¯ç°¡äœäžæãžã®ç¿»èš³ããæäŸããŠããªãâŠâŠã
- ãFirefish ã«ã€ããŠãã®ããŒãžã« Misskey ã®äž»èŠãªè²¢ç®è
ã衚瀺
- ãã®ãœãããŠã§ã¢ã¯ Misskey ã®ãã©ãŒã¯ã§ãããã
- é²èŠ§æ³šæã®æçš¿ãžã®è¿ä¿¡ã§æ³šéã®å
é ã« "re:" ãã€ããèšå®ãè¿œå
- è¿ä¿¡ã§é²èŠ§æ³šæã¯ç¶æããããã©ãã®ãŸãŸã®æ³šéãçšããã®ã«ã¯éåæãèŠããããšããããããã
- ç«è³ã®è§ãå°ãäžžãããïŒMisskey ããåã蟌ã¿ïŒ
- ãã®ã»ãããããããã
- ã€ã³ã¹ã¿ã³ã¹ãã£ãã«ãŒã®ããŒã«ãããã«åºããœãããŠã§ã¢å㧠FoundKey, PeerTube, GNU social, WriteFreely ãªã©ãæ£ãã衚瀺ãã
䜿çšæ¹æ³
Docker ãŠãŒã¶ãŒ
ã€ã³ã¹ããŒã«
ToDo (#a3WPw)
-
ã€ã³ã¹ããŒã«ã¹ã¯ãªããã®æäŸãèããŠããŸã
-
æ £ããŠããæ¹åãã®èª¬æ:
docker.io/naskya/firefish
ãçšã㊠Firefish ãã€ã³ã¹ããŒã«ãã以äžã®ã³ãã³ããçšã㊠PGroonga ã®æ¡åŒµæ©èœãæå¹ã«ããŠãã ãããdocker-compose exec db psql --command="CREATE EXTENSION pgroonga;" --dbname=firefish
ã¢ããããŒã
éèŠãªãç¥ãããããå Žåã«ã¯ã¢ããããŒãã¹ã¯ãªãããéããŠãäŒãããã®ã§ãå¿
ã update.sh
ãçšããŠã¢ããããŒãããŠãã ããã
-
ãµãŒããŒã®ããã¯ã¢ãããåã
-
update.sh
ãå®è¡ãã衚瀺ãããæ瀺ã«åŸã./update.sh
-
ãµãŒããŒãèµ·åããŠåäœã確èªãã
docker-compose up --detach
é Docker ãŠãŒã¶ãŒ
ã€ã³ã¹ããŒã«
ToDo (#a3WPw)
- ã€ã³ã¹ããŒã«ã¹ã¯ãªãããã€ã³ã¹ããŒã«æ¹æ³ã®èª¬æãæäŸããããšãèããŠããŸã
- é åããªæ¹æ³ã§ãããå ¬åŒã®ã€ã³ã¹ããŒã«ã¹ã¯ãªããã䜿ãããå Žåã«ã¯ãããçšããŠæ¬å®¶ã® Firefish ãã€ã³ã¹ããŒã«ããŠããäžèšã®æé ã§ãã®ãã©ãŒã¯ã«ç§»è¡ã§ããŸãã
- æ £ããŠããæ¹ãžã®èª¬æ: PostgreSQL ãçšããéåžžã® Firefish ã®ã€ã³ã¹ããŒã«ã«å ã㊠PGroonga ã®ã€ã³ã¹ããŒã«ããã³ããŒã¿ããŒã¹ã®æ¡åŒµæ©èœã®æå¹åãè¡ããŸãã
ã¢ããããŒã
éèŠãªãç¥ãããããå Žåã«ã¯ã¢ããããŒãã¹ã¯ãªãããéããŠãäŒãããã®ã§ãå¿
ã update.sh
ãçšããŠã¢ããããŒãããŠãã ããã
-
ãµãŒããŒã®ããã¯ã¢ãããåã
-
ãµãŒããŒãåæ¢ãã
sudo systemctl stop yourserver.example.com
-
update.sh
ãå®è¡ãã衚瀺ãããæ瀺ã«åŸã./update.sh
-
ãµãŒããŒãèµ·åããŠåäœã確èªãã
sudo systemctl start yourserver.example.com
æ£åžžã«ã¢ããããŒãã§ããªãã£ãå Žå
./update.sh |& tee /tmp/fflog
ãå®è¡ããŠïŒãã°ã /tmp/fflog
ã«ä¿åãããŸãïŒãOS ãªã©ã®ç°å¢ã®æ
å ±ãšãšãã«ãã°ã®å
容ãç§ãŸã§éã£ãŠãã ããã
ãã°ã¯é·ãã®ã§ããããäžæçš¿ã«åãŸããŸããããã®ããããã°ãéãéã«ã¯æçš¿ã«ãã¡ã€ã«ãçŽæ¥æ·»ä»ããããPastebin ãªã©ã®ãµãŒãã¹ã䜿ã£ãŠãã ããã
ãã°ãéã£ãã /tmp/fflog
ã¯åé€ããŠããã§ãã
rm /tmp/fflog
æ¬å®¶ Firefish ããã®ä¹ãæã
-
ãµãŒããŒã®ããã¯ã¢ãããåã
-
ãµãŒããŒãåæ¢ãã
sudo systemctl stop yourserver.example.com
-
Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ã㪠(e.g.,
/home/calckey/calckey
) ã®èŠªãã£ã¬ã¯ã㪠(e.g.,/home/calckey
) ã«ç§»åããcd /home/calckey
-
Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ã㪠(e.g.,
./calckey
) ã®ååãå€ããmv calckey calckey.old
-
å ã Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ã㪠(e.g.,
./calckey
) ãšåãååã§ãã®ãªããžããªãã¯ããŒã³ããgit clone https://code.naskya.net/naskya/firefish calckey
-
å¿ èŠãªãã¡ã€ã«ãå ã®ãã£ã¬ã¯ããªããã³ããŒãã
rm -rf calckey/files calckey/custom calckey/.config cp -r calckey.old/files calckey cp -r calckey.old/custom calckey cp -r calckey.old/.config calckey
-
å šææ€çŽ¢ãšã³ãžã³ïŒMeilisearch, Sonic, Elasticsearch ã®ããããïŒã䜿çšããŠããå Žåã«ã¯ã
.config/default.yml
ãããã®èšå®ãåé€ãŸãã¯ã³ã¡ã³ãã¢ãŠãããå é ã«
#
ãã€ãããšèšå®ãã³ã¡ã³ãã¢ãŠãã§ããŸãã#sonic: # host: localhost # port: 1491 # auth: SecretPassword # collection: notes # bucket: default
å šææ€çŽ¢ãšã³ãžã³ã¯åæ¢ãŸãã¯ã¢ã³ã€ã³ã¹ããŒã«ããŠããŸã£ãŠããã§ããæ¬å®¶ã® Firefish ã«æ»ãã€ããããããªãåæ¢ããããã§ãªããã°ã¢ã³ã€ã³ã¹ããŒã«ãããããããŸãã
åæ¢ã³ãã³ãã®äŸ
sudo systemctl disable --now sonic
-
PostgreSQL ã®ããŒãžã§ã³ã確èªãã
psql --version
-
PGroonga ãã€ã³ã¹ããŒã«ãã
ã³ãã³ãã®äŸïŒè©³ããã¯ãã®æçš¿ãåèã«ããŠãã ããïŒ
sudo apt install -y software-properties-common sudo add-apt-repository -y universe sudo add-apt-repository -y ppa:groonga/ppa sudo apt install -y wget lsb-release wget https://packages.groonga.org/ubuntu/groonga-apt-source-latest-$(lsb_release --codename --short).deb sudo apt install -y -V ./groonga-apt-source-latest-$(lsb_release --codename --short).deb echo "deb http://apt.postgresql.org/pub/repos/apt/ $(lsb_release --codename --short)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add - sudo apt update sudo apt install -y -V postgresql-14-pgdg-pgroonga
-
.config/default.yml
ã«æžãããŠããããŒã¿ããŒã¹ã®ååã確èªããïŒä»¥äžã®äŸã§ã¯mk1
ïŒdb: host: localhost port: 5432 db: mk1 # <---
-
以äžã®ã³ãã³ããå®è¡ã㊠PGroonga ã®æ¡åŒµæ©èœãæå¹ã«ããïŒ
mk1
ã®éšåã¯èªåã®ããŒã¿ããŒã¹åã«å€ããŠå®è¡ïŒsudo -iu postgres psql --command="CREATE EXTENSION pgroonga;" --dbname=mk1
-
æ°ãã Firefish ã®ãã£ã¬ã¯ããªã«å ¥ã£ãŠãã«ããã
cd calckey ./update.sh --skip-all-confirmations
泚æ:
--skip-all-confirmations
ãšãããªãã·ã§ã³ã¯æ®æ®µã®ã¢ããããŒãã§ã¯äœ¿ããªãã§ãã ãããéèŠãªãç¥ãããããå Žåã§ã衚瀺ãã¹ããããããŠããŸããŸãã -
ãµãŒããŒãèµ·åããŠåäœã確èªãã
sudo systemctl start yourserver.example.com
-
å ã Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ããªãåé€ãã
cd .. rm -rf calckey.old
ãã®ãã©ãŒã¯ããæ¬å®¶ Firefish ãžæ»ã
-
ãµãŒããŒã®ããã¯ã¢ãããåã
-
ãµãŒããŒãåæ¢ãã
sudo systemctl stop yourserver.example.com
-
Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ã㪠(e.g.,
/home/calckey/calckey
) ãžç§»åããcd /home/calckey/calckey
-
ææ°çã«ã¢ããããŒããã
./update.sh
-
.config/default.yml
ã«æžãããŠããããŒã¿ããŒã¹ã®ååã確èªããïŒä»¥äžã®äŸã§ã¯mk1
ïŒdb: host: localhost port: 5432 db: mk1 # <---
-
ãã®ãã©ãŒã¯ã§å ããããããŒã¿ããŒã¹ãžã®å€æŽãåãæ¶ãïŒ
mk1
ã®éšåã¯èªåã®ããŒã¿ããŒã¹åã«å€æŽããïŒsudo -iu postgres psql --file=neko/revert.sql --dbname=mk1
-
PGroonga ãã¢ã³ã€ã³ã¹ããŒã«ãã
ã³ãã³ãã®äŸ
sudo apt purge --remove postgresql-14-pgdg-pgroonga sudo add-apt-repository --remove ppa:groonga/ppa sudo apt-key del ACCC4CF8 sudo apt update
-
Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ããªã®èŠªãã£ã¬ã¯ã㪠(e.g.,
/home/calckey
) ã«è¡ãcd ..
-
Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ã㪠(e.g.,
./calckey
) ã®ååãå€ããmv calckey calckey.old
-
Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ããªãšåãååã§æ¬å®¶çã® Firefish ã clone ãã
git clone https://git.joinfirefish.org/firefish/firefish.git calckey
-
å¿ èŠãªãã¡ã€ã«ãã³ããŒãã
rm -rf calckey/files calckey/custom calckey/.config cp -r calckey.old/files calckey cp -r calckey.old/custom calckey cp -r calckey.old/.config calckey
-
æ°ãã Firefish ã®ãã£ã¬ã¯ã㪠(e.g.,
./calckey
) ã«å ¥ããdevelop
ãã©ã³ãã«è¡ãïŒå®éã«ã¯æ¢ã«develop
ã«ããã¯ãïŒcd calckey git checkout develop
-
Firefish ããã«ããã
corepack prepare pnpm@latest --activate pnpm i NODE_ENV=production pnpm run build pnpm run migrate
-
ãµãŒããŒãèµ·åããŠåäœã確èªãã
sudo systemctl start yourserver.example.com
-
å ã Firefish ãã€ã³ã¹ããŒã«ãããŠãããã£ã¬ã¯ããªãåé€ãã
cd .. rm -rf calckey.old
泚æ
ãã®æé ãèžããšããªãã® Firefish ãµãŒããŒã¯ develop
çã«ãªããŸããä»ã®ããŒãžã§ã³ãåããããå Žåãã次ã®ã¢ããããŒãããªãªãŒã¹ããããŸã§ã¯ develop
çãåãããŠãã ããã
äŸãã° beta
çãåããããå Žåã次㫠beta
çããªãªãŒã¹ãããããã¡ãã«ç§»ããŸãã
git checkout beta
git pull --ff
corepack prepare pnpm@latest --activate
pnpm i
NODE_ENV=production pnpm run build
pnpm run migrate