EDIT after resolved: This happened when I open the second Discourse instance, not when I start the server.
I have two Discourse directories. I followed the following guide to install it.:
So, the first one, say,
cd ~/discourse bundle exec rails server --binding=0.0.0.0
is running okay, I can sign in, create my topics, etc.
Then I run another Dicsourse instance after changing the
config/database.yml to use different ‘database’ name and run it on different port:
cd ~/discourse2 bundle exec rails server -p <different-port> --binding=0.0.0.0
It does create those databases additionally. And it runs, sure. But when I visit the first instance that’s been running and refresh, I’m signed out from it. I can log in into the second instance, and start my thing there. And when I log into my first instance, it signs me out from the second instance.
And now I’ve tried running Discourse on Docker, it runs, but when I visit
localhost and I get the “Register page”, I’m logged out from the running Discourse.
I’m not trying to use one account for two instances.
How do I keep each account signed-in on its own Discourse instance? (Account ‘foo’ on ‘discourse’ and account ‘bar’ on ‘discourse-2’ instance)