XenForo Import Failing (config/application.rb:2)

Pretty much. Funnily enough, the correct command:

RAILS_ENV=production bundle exec ruby script/import_scripts/xenforo.rb

was in as a comment in the xenforo.rb file but not in the documentation in the linked above.

It only caught my eye this evening.