# XenForo导入失败 (config/application.rb:2)

**URL:** <https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049>\
**Category:** Product Support\
**Created:** [2016 年9 月 12 日 23:47 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049 "2016-09-12T23:47:35Z")\
**Posts on this page:** 1\
**Showing post:** 15

<div class="post-metadata">

作者： ![Padraig](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/padraig/32/121553_2.png) [@Padraig](https://meta.discourse.org/u/Padraig)\
发布日期： [2016 年9 月 14 日 00:05 UTC](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049/15 "2016-09-14T00:05:55Z")

</div>

> [@mpalmer](#):
>
> So without the RAILS\_ENV=production it didn’t work?

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.

---

_[View the full topic](https://meta.discourse.org/t/xenforo-import-failing-config-application-rb-2/50049)._
