Rails with Docker: How to set up your Compose stack for Rails with Tailwind CSS
profankhauser
0:00 / 0:00
Rails with Docker: How to set up your Compose stack for Rails with Tailwind CSS
1 027 просмотров · 2 г. назад
profankhauser
23 подписчика
1 027 просмотров · 2 г. назад
This video guide walks you through the process of setting up, installing, and initiating a new Rails application using the Tailwind CSS framework with Docker. It begins with installing Docker Desktop and checking out a GitHub repository with example code. Then, the guide moves on to setting up a Docker Compose stack and a Dockerfile for the app service.
Next, we walk through installing Rails in a container, creating a new Rails app, and building the Compose stack. We then run a Rails console in an app service container and start a Rails server with the Compose stack. We also cover how to define and start a Tailwind watcher service with the Compose stack.
In the latter part of the video, we generate a Post scaffold in an app service container and run tests in the same container. Throughout the guide, we troubleshoot any issues that come up and explain how to resolve them. By the end of this video, you'll be able to create a Rails application with the Tailwind CSS framework using Docker.
Github repo with examples: https://github.com/profankhauser/exam...
Prof. Fankhauser website: https://fankhauser.io
00:00 Intro
00:37 Install Docker
00:52 Check the Github repository with example code
01:02 Setup the Docker Compose stack
01:39 Setup the Dockerfile for the app service
02:21 Install Rails in a container
02:53 Create a new Rails app from within the container
03:24 Build the Compose stack
04:12 Start a Rails console in an app service container
04:36 Start a Rails server with the Compose stack
05:43 Define and start a Tailwind watcher service with the Compose stack
07:02 Generate a Post scaffold in an app service container
07:56 Run tests in an app service container
09:02 Outro