fly launch -- rails improvements

Two Rails improvements went into the latest flyctl (v0.2.97):

  • Views are now scanned for turbo_stream_from and that is taken as an indication that redis is desired. We are watching Rails 8 and Solid Queue - once that lands it will override this behavior.
  • When a Rails app is launched without a config/master.key we will now generate a SECRET_KEY. For many applications this is sufficient as no other credentials are in use. This solves a common problem where someone tries to launch a Rails application that they cloned from github as the master key is listed in .gitignore.

As an aside, with this second change if you delete config/credentials.yml.enc, .ruby-version, Dockerfile, bin/docker-entrypoint and remove the ruby line from your Gemfile, you can have a github repository that others can directly deploy from, with a configuration generated specifically for their version of Ruby. Going forward, you will see examples from us that you can directly launch.

2 Likes