Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images saved via using ActiveStorage different in production and development environments #45506

Closed
Sega100500 opened this issue Jul 1, 2022 · 1 comment

Comments

@Sega100500
Copy link

Sega100500 commented Jul 1, 2022

Expected behavior

In both environments same behavior

Actual behavior

In development environment saved (attach) image in content-page within gem ckeditor using ActiveStorage with mini_magick - then in production environment image are not showed, and vice versa - saved in production, then are not showed in development. I use same database (mysql) in development and production environments.

System configuration

  • Ruby version: 3.1.2
  • Rails version: 7.0.3
  • gem ckeditor 5.1.1

In production mode I use config:

config.assets.compile = true
config.active_storage.service = :local
config.active_storage.variant_processor = :mini_magick

in development:

config.active_storage.service = :local
config.active_storage.variant_processor = :mini_magick

saved image in source code of page show like this:

<img alt="" src="/rails/active_storage/representations/redirect/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBDUT09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--68a08d9de8f843ecd8b5c5be61d33859a3333bb7/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaDdCem9MWm05eWJXRjBTU0lJYW5CbkJqb0dSVlE2QzNKbGMybDZaVWtpQ1Rnd01ENEdPd1pVIiwiZXhwIjpudWxsLCJwdXIiOiJ2YXJpYXRpb24ifX0=--2ccbd7d12a252e03eb26bb2401505e4efaeff669/7d85fe9c160bb2f3b559a45303cc8ce4.jpg" style="width: 700px; height: 475px;" />

The problem, most likely, is in the ActiveStorage, because the gem ckeditor works correctly with other configurations

@Sega100500 Sega100500 changed the title Images saved via using ActiveStorage different in production and development modes Images saved via using ActiveStorage different in production and development environments Jul 2, 2022
@rafaelfranca
Copy link
Member

Closing since the issue is on sprockets-rails

@rafaelfranca rafaelfranca closed this as not planned Won't fix, can't repro, duplicate, stale Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants