--- 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"] ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up