إكمال التثبيت يدوياً؟

أواجه بعض الصعوبات في حل مشاكل 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.