fix base urls for assets in development

This commit is contained in:
Ahmed Ejaz
2025-02-19 05:09:19 +05:00
parent bf62d16ca5
commit 216348d361
3 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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