Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ENV for configure exclusively #342

Merged
merged 2 commits into from
Nov 6, 2015
Merged

Use ENV for configure exclusively #342

merged 2 commits into from
Nov 6, 2015

Conversation

timurvafin
Copy link
Member

  • Remove app_config shortcut
  • Add HOST variable
  • Add MAILER_SENDER_ADDRESS variable

We should configure application using only ENV variables.
No need to add additional layer of complexity with app_config.

# ROLLBAR_KEY=your_key_here

# enable basic auth to close the app from unauthorized viewers:
# We send devise email using this "from" address
MAILER_SENDER=noreply@example.com
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe 'address' is better than 'sender' here

@dmitrytrager
Copy link
Contributor

🆗 except tests

@ruslankhaertdinov
Copy link
Contributor

Looks 👍

@arkadiybutermanov
Copy link

🆗

* Remove `app_config` shortcut
* Add `HOST` variable
* Add `MAILER_SENDER` variable

We should configure application using only ENV variables.
No need to add additional layer of complexity with `app_config`.
timurvafin added a commit that referenced this pull request Nov 6, 2015
Use ENV for configure exclusively
@timurvafin timurvafin merged commit a052a7a into master Nov 6, 2015
@timurvafin timurvafin deleted the env branch November 6, 2015 09:24
timurvafin added a commit that referenced this pull request Nov 27, 2015
- Introduce [Draper](https://github.com/drapergem/draper) for presenting models into views
- Move Rack::MiniProfiler authorization to initializers
- Add ability to configure SMTP Mailer options not only with SendGrid via `config/initializers/mailer.rb`
- [Remove `app_config`](#342) shortcut and use `ENV` exclusively
- Turning on Partial Double Verification for Rspec
- Replace [rails_12factor](https://github.com/heroku/rails_12factor) with [rails_stdout_logging](https://github.com/heroku/rails_stdout_logging)
- Update [foundation-rails gem](https://github.com/zurb/foundation-rails)
- Update [rollbar gem](https://github.com/rollbar/rollbar-gem)
- Add gem [rack-mini-profiler](https://github.com/MiniProfiler/rack-mini-profiler) for displaying speed badge for every html page.
- Add configuration for [NewRelic](https://devcenter.heroku.com/articles/newrelic) Heroku-addon
- Implement the dynamic database name
@timurvafin timurvafin mentioned this pull request Nov 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants