初始化過程參照這篇帖子
配置文件有配置 CDN 可以參照這篇帖子中的docker 部署
下面是摘抄安裝指南中的命令詳情:
The launcher command in the /var/discourse folder can be used for various kinds of maintenance:
Usage: launcher COMMAND CONFIG [--skip-prereqs]
Commands:
start: Start/initialize a container
stop: Stop a running container
restart: Restart a container
destroy: Stop and remove a container
enter: Enter a container using docker exec
logs: Docker logs for container
bootstrap: Bootstrap a container for the config based on a template
rebuild: Rebuild a container (destroy old, bootstrap, start new)
cleanup: Remove all containers that have stopped for > 24 hours
Options:
--skip-prereqs Don't check prerequisites
--docker-args Extra arguments to pass when running docker
2016.4.25 遷移了一下 論壇
首先參照這篇帖子 用官方推薦的辦法遷移了一下, 遷移過程中有幾個(gè)坑, 下面記錄了一下:
在新的機(jī)器安裝discourse 的時(shí)候, 管理員賬號(hào)無法激活 參照 郵件配置 成功添加管理員賬號(hào).
在上傳的之前的備份的時(shí)候一直卡在8% 原因不詳, 后來直接登上服務(wù)器手動(dòng)把備份文件拷貝至指定位置.
備份恢復(fù)成功后, 數(shù)據(jù)都正常, 但是不知為何, 一些自定義樣式一直不生效.
直接把 /var/discourse/shared/standalone 下的所有數(shù)據(jù)拷貝至新機(jī)器上, 重新 rebuild 就生效了. 這樣看來直接這樣就可以了, 也不需要下載備份再上傳了.