# How can I import/export settings into a file?

**URL:** <https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496>\
**Category:** Product Support\
**Created:** [2016 年10 月 13 日 11:41 UTC](https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496 "2016-10-13T11:41:59Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![alb](https://avatars.discourse-cdn.com/v4/letter/a/f475e1/32.png) [@alb](https://meta.discourse.org/u/alb)\
发布日期： [2019 年5 月 23 日 23:31 UTC](https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496/7 "2019-05-23T23:31:16Z")

</div>

Hello,

I’ve used discourse-settings-uploader to upload site\_settings.json file from the GitHub Jay mentioned. I get this error when I run it:

```
./discourse-settings-uploader:39:in `<main>': undefined method `each' for nil:NilClass (NoMethodError)

line39: settings['site_settings'].each do |setting|
line40: jsetting (setting) unless setting['value'] == setting['default']
line41: end

```

I used an API key for “All Users” and used “system” when I ran discourse-settings-uploader.  
Any thoughts?

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-import-export-settings-into-a-file/51496)._
