---
# System prepended metadata

title: 使用figaro
tags: [安裝套件 相關]

---

---
title:  使用figaro
tags: 安裝套件 相關
---

## <font color=red>**使用figaro** </font>

Gemfile
```
gem "figaro"
bundle
bundle exec figaro install
產生 config/application.yml 跟 .gitignore 更新
```

```
# config/application.yml

pusher_app_id: "2954"
pusher_key: "7381a978f7dd7f9a1117"
pusher_secret: "abdc3b896a0ffb85d373"
```
使用環境變數
```
@app_id = ENV["pusher_app_id"]
@app_key = ENV["pusher_key"]
@app_secrrt = ENV["pusher_secret"]
```