How to change a site setting via the Console

After running : “bundle exec rails c”
I’m getting an error : “Could not locate Gemfile”

How to fix it?