DEV Community

Discussion on: dev.to open source help/discussion thread (v0)

Collapse
 
andy profile image
Andy Zhao (he/him)

Hm that's strange. Try these two things:

  1. You're probably doing this correctly already, but make sure you're setting the keys in config/application.yml and not sample_application.yml.
  2. You might be running into a spring error, which is a Rails app preloader. If spring is running, it'll run bin commands for you, but sometimes doesn't refresh when you change things like environment variables. Try turning it off with spring stop and then running bin/setup again.
Collapse
 
stephaniekyyip profile image
Stephanie

Spring wasn't actually running, but I figured out what the issue was.

When I ran git status, it seemed like I accidentally made some changes to config/application.rb. I undid those changes and now bin/setup works.

Thanks for trying to help though!

Thread Thread
 
andy profile image
Andy Zhao (he/him)

Great! Glad it's resolved :)