首页>文档>笔记>chatwoot开源在线客服安装教程

chatwoot开源在线客服安装教程

基础环境安装(已安装可略过)

1.git安装.

yum -y install git

2.rvm安装

2.1、安装curl
yum -y install curl
2.2、安装rvm
curl -sSL https://rvm.io/mpapis.asc | gpg2 --import -
curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import -
2.3.再次执行安装命令
curl -L get.rvm.io | bash -s stable
2.4安装ruby
rvm install 3.0.4

3.node、yarn安装可通过宝塔面板安装

sudo yum install -y nodejs

yarn安装执行:

yum install -y yarn

如果提示不存在

1、添加yarn仓库

wget https://dl.yarnpkg.com/rpm/yarn.repo -O /etc/yum.repos.d/yarn.repo

2、安装yarn

yum -y install yarn

4. redis、postgress 通过宝塔面板安装略过

服务安装

下载源代码进入根目录

git clone  https://github.com/chatwoot/chatwoot.git

1.安装依赖.

install ruby dependencies

bundle

Install JavaScript dependencies

yarn
2.设置环境变量修改相应参数
cp .env.example .env
3.编译前端
rake assets:precompile RAILS_ENV=production
4.数据库迁移
RAILS_ENV=production bundle exec rake db:create
RAILS_ENV=production bundle exec rake db:reset
5.启动服务

修改:Procfile

#release: bundle exec rails db:chatwoot_prepare
web: bin/rails server -p 3000 -e production
worker: bundle exec sidekiq -C config/sidekiq.yml

执行指令:

foreman start -f Procfile

遇到的问题:

1、PostgreSQL无法连接,修改客户端认证pg_hba.conf
# “local” is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 peer

2、ERROR: could not open extension control file “/usr/local/pgsql/share/extension/pg_stat_statements.control”: No such file or directory

参考postgresql手动安装扩展

个人中心
有新私信 私信列表
搜索