从源代码安装 Discourse 时,我成功显示我的网站。使用“RAILS_ENV=production bundle exec rake user:create”添加管理员后,网站变为空白,屏幕一片空白。有人知道如何修复这个问题吗?似乎没有删除管理员的操作。
另外,我尝试在生产中安装它,但注意到它在启动时显示开发环境(见下文),这可能相关吗?
supp@mrde:/var/www/html/discourse$ RAILS_ENV=production bundle exec pumactl -P /var/www/html/discourse/tmp/pids/puma.pid start
[8759] Puma starting in cluster mode…
[8759] * Version 3.12.1 (ruby 2.6.3-p62), codename: Llamas in Pajamas
[8759] * Min threads: 8, max threads: 32
[8759] * Environment: development
[8759] * Process workers: 4
[8759] * Preloading application
[8759] * Listening on unix:///var/www/html/discourse/tmp/sockets/puma.sock
[8759] ! WARNING: Detected 3 Thread(s) started in app boot:
[8759] ! # – /var/www/html/discourse/vendor/bundle/ruby/2.6.0/gems/hiredis-0.6.3/lib/hiredis/ext/connection.rb:19:in `read’
[8759] ! # – /var/www/html/discourse/vendor/bundle/ruby/2.6.0/gems/message_bus-2.2.0/lib/message_bus/timer_thread.rb:123:in `sleep’
[8759] ! # – /var/www/html/discourse/lib/discourse.rb:619:in `sleep’
[8759] * Daemonizing…