手动完成安装?

我在服务器上遇到一些关于 SMTP 的问题尚未解决,希望先手动完成安装流程,以便其他团队成员可以继续推进与 SMTP 服务器问题无关的工作。

我通过以下方式手动“激活”了管理员用户:

cd /var/discourse
./launcher enter app
rails c

# 在 Rails 的 Pry 控制台中:
> u = User.find_by_username_or_email('admin_user@domain.tld')
> u.activate
> u.save
> quit

但是,当我访问网站(例如 domain.tld)时,仍然看到"恭喜,您已成功安装 Discourse!"页面,并且只能点击 [注册] 按钮。

如何手动触发系统跳过此步骤,以便开始正常使用系统?

You need to have one user that is am administrator. After you enter the container.

rake admin:create

@pfaffman thanks for that. Worked great.

When I tried to use the same email address, it said the password was already set (as it was). I went ahead and changed the password via rake admin:create as per the prompt and then likewise granted admin privileges to the account. After this was done I revisited the main site and lo and behold Discourse came up properly and did not take me back to the setup process.