Skip to content

Business intelligence made simple

Do not require environment variable in development

Andrew Kane397411916c24
diff --git a/README.md b/README.md
index 28bc1260..52cdb2d4 100644
--- a/README.md
+++ b/README.md
@@ -17,8 +17,6 @@ Works with PostgreSQL and MySQL
- **Smart Variables** - no need to remember IDs
- **Charts & Maps** - a picture is worth a thousand words
-Documentation coming soon.
-
## Installation
Add this line to your application’s Gemfile:
@@ -40,7 +38,7 @@ And mount the dashboard in your `config/routes.rb`:
mount Blazer::Engine, at: "blazer"
```
-Then, specify your database:
+For production, specify your database:
```ruby
ENV["BLAZER_DATABASE_URL"]
@@ -62,7 +60,7 @@ GRANT USAGE ON SCHEMA public TO blazer;
COMMIT;
```
-It’s highly recommended to protect sensitive information with views. Documentation coming soon.
+It is **highly, highly recommended** to protect sensitive information with views. Documentation coming soon.
### MySQL
@@ -73,7 +71,7 @@ GRANT SELECT, SHOW VIEW ON database_name.* TO blazer@’127.0.0.1′ IDENTIFIED
FLUSH PRIVILEGES;
```
-It’s highly recommended to protect sensitive information with views. Documentation coming soon.
+It is **highly, highly recommended** to protect sensitive information with views. Documentation coming soon.
## Authentication
diff --git a/app/controllers/blazer/queries_controller.rb b/app/controllers/blazer/queries_controller.rb
index 63f504b3..cc0ac7cd 100644
--- a/app/controllers/blazer/queries_controller.rb
+++ b/app/controllers/blazer/queries_controller.rb
@@ -125,7 +125,7 @@ module Blazer
private
def ensure_database_url
- render text: "BLAZER_DATABASE_URL required" if !ENV["BLAZER_DATABASE_URL"]
+ render text: "BLAZER_DATABASE_URL required" if !ENV["BLAZER_DATABASE_URL"] && !Rails.env.development?
end
def set_query