From 9205de5ed7015b6f17c4233fc621db0bb04e06a0 Mon Sep 17 00:00:00 2001 From: Nigel <609441862@qq.com> Date: Wed, 12 May 2021 11:50:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=8E=E5=8F=B0=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Trustie_server | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Trustie_server b/Trustie_server index 457480d..4802b8a 100644 --- a/Trustie_server +++ b/Trustie_server @@ -6,7 +6,8 @@ B. 如果重新创建了用户后,由于Trustie debug开发环境下有默认的调试用户 (forgeplus/app/controllers/application_controller.rb: user = User.find 36),因此创建的测试用户需要在users表中有36号ID,这样我们在运行起来Trustie并注册用户后,需要手工将forge_development数据库users表中的相应用户修改为36号ID 3. redis安装一定要注意版本,不能使用4+版本,而应该使用5+或者6+ 4. 8、9、10三条数据库命令需要一气呵成,8和9执行的时候会报错,但是不影响第10步的执行 -5. 第14步中rails服务的启动命令为:nohup rails s -p 3001 -b 0.0.0.0 > rails-s.log 2>&1 & +5. 第14步中rails服务的启动命令为:nohup rails s -e production -p 3001 -b 0.0.0.0 > rails-s.log 2>&1 & +(nohup rails s -p 3001 -b 0.0.0.0 > rails-s.log 2>&1 &) 注意: A. 这里要bind 0.0.0.0,否则外部访问不到,做本机前端测试的时候就没法用了 B. -p指定的端口一定要是被开放的,阿里云服务器有端口限制