3.6 C
New York
Friday, November 22, 2024

Ruby on Rails speeds up deployment with Kamal 2



Kamal can perform this operation because Rails is equipped with a Dockerfile to convert an application to a container image, Heinemeier said. With Rails 8, the docker file has been updated to include a proxy, called propellerwhich sits in front of the Puma web server to offer X-Sendfile acceleration, asset compression and asset caching. Therefore, there is no need to put an Nginx server or other web server in front. Also included in Kamal 2 is Kamal Proxy to replace the generic Traefik option at launch. This proxy offers fast deployments with no downtime, automated SSL certificates, and support for multiple applications on one server without complicated configuration, according to the Rails Bulletin on Rails 8.

Also in Rails 8, database-backed adapters allow the use of SQLite for features like caching, WebSockets, and jobs. AND solid cableA database-backed Action Cable adapter replaces the need for Redis to act as a pubsub server to transmit WebSocket messages from the application to clients connected to different processes. AND Solid cachea database-backed Active Support cache store, replaces the need for Redis or Memcached to cache HTML fragments, in particular. solid tailMeanwhile, a live job backend backed by a database means there’s no need for Redis or a separate job execution framework, like Sidekiq or Delayed Job, for most people.

On the security front, Rails 8 puts together the pieces for a complete authentication system builder, creating a starting point for a session-based, password-resettable, metadata-tracking authentication system. Rails 8 also includes work to make the SQLite adapter and Ruby driver suitable for production use. AND propeller shaft becomes the default asset channel, replacing the Sprockets system, which dates back to 2009.

Related Articles

Latest Articles