Skip to content

Commit 28e916a

Browse files
authored
Fix projects admin (#347)
2 parents e8657c1 + 85e85b7 commit 28e916a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ RUN gem install bundler \
33
&& apt-get update \
44
&& apt-get upgrade --yes \
55
&& apt-get install --yes --no-install-recommends \
6-
libpq5 libxml2 libxslt1.1 \
6+
libpq5 libxml2 libxslt1.1 libvips \
77
curl gnupg graphviz nodejs \
88
&& echo "deb http://apt.postgresql.org/pub/repos/apt bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list \
99
&& curl -sL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - \

app/controllers/admin/projects_controller.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def destroy_image
1717
private
1818

1919
def set_host_for_local_storage
20-
ActiveStorage::Current.host = request.base_url if Rails.application.config.active_storage.service == :local
20+
return unless Rails.application.config.active_storage.service == :local
21+
22+
ActiveStorage::Current.url_options = { host: request.base_url }
2123
end
2224
end
2325
end

0 commit comments

Comments
 (0)