Completare l'installazione manualmente?

Sto riscontrando alcune difficoltà nel risolvere definitivamente alcuni problemi SMTP su un server e vorrei procedere con il completamento manuale dell’installazione mentre risolviamo gli altri problemi, dato che un altro membro del team vorrebbe continuare con attività non correlate ai problemi del server SMTP.

Sono riuscito ad attivare manualmente l’utente amministratore eseguendo quanto segue:

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

# All'interno di Rails con Pry:
> u = User.find_by_username_or_email('admin_user@domain.tld')
> u.activate
> u.save
> quit

Tuttavia, quando visito il sito (ad esempio domain.tld), visualizzo ancora la pagina “Congratulazioni, hai installato Discourse!”. Posso ancora premere solo il pulsante [Registrati].

Come posso attivare manualmente il sistema per superare questo passaggio in modo da poter iniziare a utilizzare normalmente il sistema?

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

rake admin:create
3 Mi Piace

@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.

1 Mi Piace

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.