修改后台启动方式
This commit is contained in:
parent
b7d45bf4c6
commit
9205de5ed7
|
@ -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指定的端口一定要是被开放的,阿里云服务器有端口限制
|
||||
|
|
Loading…
Reference in New Issue