You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The best way to read this guide is to follow it step by step. All steps are
14
14
essential to run this example application and no additional code or steps are
15
15
needed.
16
16
17
-
This guide helps you get set up with [Developer Containers (or Dev Containers for short)](https://containers.dev/)
18
-
for a full-featured development environment. Dev Containers are used to run your
19
-
Rails application in a container, without needing to install Rails or its dependencies
17
+
This guide helps you get set up with [development containers (or dev containers for short)](https://containers.dev/)
18
+
for a full-featured development environment. Dev containers are used to run your
19
+
Rails application in a container, without needing to install Ruby or Rails or its dependencies
20
20
directly on your machine. This is the fastest way to get your Rails application up and running.
21
21
22
22
This is an alternative to installing Ruby and Rails directly on your machine, which is
@@ -27,38 +27,38 @@ the Getting Started guide.
27
27
Setup and Installation
28
28
----------------------
29
29
30
-
To get set up, you will need to install the relevant tools; Docker, VSCode and
31
-
`rails-new`. We'll go into detail about each one below.
30
+
To get set up, you will need to install the relevant tools; Docker, VS Code and
31
+
`rails-new`. We'll go into details about each one below.
32
32
33
33
### Installing Docker
34
34
35
-
Dev Containers are run using Docker, an open platform for developing, shipping, and
35
+
Dev containers are run using Docker, an open platform for developing, shipping, and
36
36
running applications. You can install Docker by following the installation instructions
37
37
for your operating system in the [Docker docs](https://docs.docker.com/desktop/).
38
38
39
-
Once Docker has been installed, launch the Docker Application to begin running
39
+
Once Docker has been installed, launch the Docker application to begin running
40
40
the Docker engine on your machine.
41
41
42
-
### Installing VSCode
42
+
### Installing VS Code
43
43
44
-
Visual Studio Code (VSCode) is an open source code editor developed by Microsoft. VSCode's Dev Container
44
+
Visual Studio Code (VS Code) is an open source code editor developed by Microsoft. VS Code's Dev Containers
45
45
extension allows you to open any folder inside (or mounted into) a container and take advantage of
46
46
Visual Studio Code's full feature set. A [devcontainer.json](https://code.visualstudio.com/docs/devcontainers/containers#_create-a-devcontainerjson-file)
47
47
file in your project tells VS Code how to access (or create) a development container with a
48
48
well-defined tool and runtime stack. It allows you to quickly spin up containers, access terminal
49
49
commands, debug code, and utilize extensions.
50
50
51
-
You can install VSCode by downloading it from [the website](https://code.visualstudio.com/).
51
+
You can install VS Code by downloading it from [the website](https://code.visualstudio.com/).
52
52
53
-
You can install the Dev Container extension by downloading it from [the marketplace](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
53
+
You can install the Dev Containers extension by downloading it from [the marketplace](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers).
54
54
55
55
### Installing rails-new
56
56
57
57
`rails-new` generates a new Rails application for you without having to install Ruby on
58
58
your machine. It uses Docker to generate the Rails application, thus allowing Docker to
59
59
take care of installing the correct Ruby and Rails versions for you.
60
60
61
-
To install rails-new, follow the installation instructions [in the readme](https://github.com/rails/rails-new?tab=readme-ov-file#installation).
61
+
To install `rails-new`, follow the installation instructions [in the README](https://github.com/rails/rails-new?tab=readme-ov-file#installation).
62
62
63
63
Creating the Blog Application
64
64
-----------------------------
@@ -99,25 +99,25 @@ see the full [Getting Started guide](getting_started.html#creating-the-blog-appl
99
99
Opening the Blog Application in a Dev Container
100
100
-----------------------------------------------
101
101
102
-
Our new Rails application comes with a Dev Container already configured and ready to use.
103
-
We will use VSCode to spin up and work with our Dev Container. Start by launching VSCode
102
+
Our new Rails application comes with a dev container already configured and ready to use.
103
+
We will use VS Code to spin up and work with our dev container. Start by launching VS Code
104
104
and opening your application.
105
105
106
-
Once the application opens, VSCode should prompt you that a it has found a Dev Container
107
-
configuration file, and you can reopen the folder in a Dev Container. Click the green "Reopen
108
-
in Container" button to create the Dev Container.
106
+
Once the application opens, VS Code should prompt you that a it has found a dev container
107
+
configuration file, and you can reopen the folder in a dev container. Click the green "Reopen
108
+
in Container" button to create the dev container.
109
109
110
-
Once the Dev Container setup is complete, your development environment is ready to use,
110
+
Once the dev container setup is complete, your development environment is ready to use,
111
111
with Ruby, Rails, and all your dependencies installed.
112
112
113
-
You can open the terminal within VScode to verify that Rails is installed:
113
+
You can open the terminal within VS Code to verify that Rails is installed:
114
114
115
115
```bash
116
116
$ rails --version
117
117
Rails 8.0.0
118
118
```
119
119
120
120
You can now continue with the [Getting Started guide](getting_started.html#hello-rails) and
121
-
begin building your Blog application. You will be working within VSCode, which serves as
122
-
your entry point to your application's Dev Container, where you can run code, run tests and
121
+
begin building your Blog application. You will be working within VS Code, which serves as
122
+
your entry point to your application's dev container, where you can run code, run tests, and
0 commit comments