mirror of
https://github.com/astuto/astuto.git
synced 2025-12-15 11:17:49 +01:00
Add env vars to docker-compose and improve env check
This commit is contained in:
@@ -21,11 +21,11 @@ module App
|
||||
end
|
||||
|
||||
def email_confirmation?
|
||||
ENV["EMAIL_CONFIRMATION"] == "1"
|
||||
ENV["EMAIL_CONFIRMATION"] == "yes"
|
||||
end
|
||||
|
||||
def show_logo?
|
||||
ENV["SHOW_LOGO"] == "1"
|
||||
ENV["SHOW_LOGO"] == "yes"
|
||||
end
|
||||
|
||||
def posts_per_page
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
# and recreated between test runs. Don't rely on the data there!
|
||||
|
||||
# Set up default environment variables
|
||||
ENV["EMAIL_CONFIRMATION"] = "0"
|
||||
ENV["POSTS_PER_PAGE"] = "8"
|
||||
ENV["EMAIL_CONFIRMATION"] = "no"
|
||||
ENV["POSTS_PER_PAGE"] = "15"
|
||||
|
||||
Rails.application.configure do
|
||||
# Settings specified here will take precedence over those in config/application.rb.
|
||||
|
||||
Reference in New Issue
Block a user