Rake Tasks

:check

rails svelte_on_rails:check

Prints a status overview:

  • Status of the running Node SSR server (instance or cluster processes)
  • Trace of how the Node binary was searched and found
  • Memory usage of the Node instances
  • Disk usage of Redis

Run it with the same environment as the running server.

:precompile

rails svelte_on_rails:precompile

Builds the Svelte components for server-side rendering, see SSR Build.

:cache:show

bundle exec rails svelte_on_rails:cache:show

Lists all Redis keys used by Svelte on Rails, with their memory footprint. Env: LIMIT=n, SORT=size|key, PATTERN=extra-glob.

:cache:show_svelte

bundle exec rails svelte_on_rails:cache:show_svelte

Shows only the Svelte part of cached keys (wrapping element stripped away). Helpful when working with hydrate: or ssr: props.

:cache:show_contents

bundle exec rails svelte_on_rails:cache:show_contents

Shows the contents of cached keys.

:cache:summary

bundle exec rails svelte_on_rails:cache:summary

Shows a summary of the cache memory usage, grouped by cache-key prefix.

:cache:clear

bundle exec rails svelte_on_rails:cache:clear

Deletes all Redis keys used by Svelte on Rails.