码迷,mamicode.com
首页 > 其他好文 > 详细

aliyun install Discourse log

时间:2016-08-26 01:12:19      阅读:315      评论:0      收藏:0      [点我收藏+]

标签:

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 ‘user1@example.com,user2@example.com‘
  DISCOURSE_DEVELOPER_EMAILS: ‘admin@icoolpy.com‘

  ## 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: admin@icoolpy.com      # 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

标签:

原文地址:http://www.cnblogs.com/jacle169/p/5808773.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!