Accidentally installed ruby-railties

I messed up. I was trying to manually change a user’s password, and ended up installing ruby-railties instead. I need someone more experienced than me to tell me if I should just leave it alone, or if it’s a big problem and I should try to uninstall it, and point me at some instructions if possible. Here are the specifics:

WHAT I WAS SUPPOSED TO DO IN TERMINAL:

cd /var/discourse
./launcher enter app 
rails c
u = User.find_by_email('email@test.com')
u.password='XXXXXXXXX'
u.save!
ctrl+d to exit

WHAT I ACTUALLY DID IN TERMINAL:

cd /var/discourse
./launcher <-- LEFT OFF THE "ENTER APP" COMMAND
rails c

Response at that point was “Command ‘rails’ not found, but can be installed with: apt install ruby-railties” So then I entered “apt install ruby-railties” and installed the app.

Any advice? Discourse seems to be working fine.

1 Like

You should be just fine. You installed ruby-railties on the host operating system. Doing so won’t impact your Discourse install, though it may cause confusion in the future if you forget enter app again, as you might end up opening a rails console on the host, rather than in docker.

apt remove ruby-railties is safe to run - just make sure you’re not in the docker container.

5 Likes