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

Static assets not being served #12

Closed
camertron opened this issue Aug 19, 2020 · 1 comment
Closed

Static assets not being served #12

camertron opened this issue Aug 19, 2020 · 1 comment
Labels
good first issue Good for newcomers

Comments

@camertron
Copy link
Member

Currently, none of the static assets (images, javascript, css, etc) will be served by a Kuby-deployed application, at least not by default. This is because Rails disables serving static assets in production. You can enable it by setting config.public_file_server.enabled = true in config/environments/production.rb, or by setting the RAILS_SERVE_STATIC_FILES environment variable.

Kuby-deployed apps should serve static assets out of the box. We can do one of:

  1. set the aforementioned environment variable.
  2. build assets into a separate Docker image along with a simple file server. Much more complicated.
@camertron
Copy link
Member Author

Kuby v0.8.0 shipped yesterday with the second option described above. Here's the relevant commit, specifically the rails_assets plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant