aliyun install Discourse log

Posted 黎东海

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了aliyun install Discourse log相关的知识,希望对你有一定的参考价值。

apt update

apt install wget

wget -qO- https://get.docker.com/ | sh

vim /etc/default/docker

DOCKER_OPTS="--registry-mirror=http://aad0405c.m.daocloud.io"

service docker restart

mkdir /var/discourse
git clone https://github.com/discourse/discourse_docker.git /var/discourse
cd /var/discourse
 
cp samples/standalone.yml containers/app.yml
 
vim containers/app.yml
 

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  - "templates/web.china.template.yml"

## How many concurrent web requests are supported? Depends on memory and CPU cores.
  ## will be set automatically by bootstrap based on detected CPUs, or you can override
  UNICORN_WORKERS: 2

  ## TODO: The domain name this Discourse instance will respond to
  DISCOURSE_HOSTNAME: ‘bbs.icoolpy.com‘

  ## Uncomment if you want the container to be started with the same
  ## hostname (-h option) as specified above (default "$hostname-$config")
  #DOCKER_USE_HOSTNAME: true

  ## TODO: List of comma delimited emails that will be made admin and developer
  ## on initial signup example ‘[email protected],[email protected]
  DISCOURSE_DEVELOPER_EMAILS: ‘[email protected]

  ## TODO: The SMTP mail server used to validate new accounts and send notifications
  DISCOURSE_SMTP_ADDRESS: smtp.exmail.qq.com         # required
  DISCOURSE_SMTP_PORT: 465                        # (optional, default 587)
  DISCOURSE_SMTP_USER_NAME: [email protected]      # required
  DISCOURSE_SMTP_PASSWORD: 2000Jac               # required, WARNING the char ‘#‘ in pw can cause problems!
  DISCOURSE_SMTP_ENABLE_START_TLS: true           # (optional, default true)

 
./launcher bootstrap app
 
./launcher start app
 
账号
cd /var/discourse
./launcher enter app
rake admin:create

以上是关于aliyun install Discourse log的主要内容,如果未能解决你的问题,请参考以下文章

python easy install时,使用aliyun阿里云镜像提示主机名不匹配的问题

Discourse 升级的时候关闭了屏幕有什么问题吗

Discourse 服务器上手动升级

Discourse 的用户信息中的 IP 地址显示的是 CloudFlare 的 IP 地址

Discourse 如何限制存储到 S3 的备份文件数量

Discourse 如何限制存储到 S3 的备份文件数量