mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
fix base urls for assets in development
This commit is contained in:
@@ -18,7 +18,7 @@ OFN_REDIS_URL="redis://localhost:6379/1"
|
||||
OFN_REDIS_JOBS_URL="redis://localhost:6379/2"
|
||||
OFN_REDIS_CABLE_URL="redis://localhost:6379/0"
|
||||
|
||||
SITE_URL="0.0.0.0:3000"
|
||||
SITE_URL="localhost:3000"
|
||||
|
||||
# Deactivate rack-timeout in development.
|
||||
# https://github.com/zombocom/rack-timeout#configuring
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
%table{:bgcolor => "#f2f2f2"}
|
||||
%tr
|
||||
%td
|
||||
%img{src: ContentConfig.url_for(:footer_logo), width: "144", height: "50"}/
|
||||
= image_tag ContentConfig.url_for(:footer_logo), width: "144", height: "50"
|
||||
%td{:align => "right"}
|
||||
%h6.collapse
|
||||
= Spree::Config[:site_name]
|
||||
|
||||
@@ -69,8 +69,9 @@ Openfoodnetwork::Application.configure do
|
||||
|
||||
# Show emails using Letter Opener
|
||||
config.action_mailer.delivery_method = :letter_opener
|
||||
config.action_mailer.default_url_options = { host: "0.0.0.0:3000" }
|
||||
config.action_mailer.default_url_options = { host: "localhost:3000" }
|
||||
config.action_mailer.asset_host = "http://localhost:3000"
|
||||
config.asset_host = "http://localhost:3000"
|
||||
|
||||
config.log_level = ENV.fetch("DEV_LOG_LEVEL", :debug)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user