Skip to content

Commit c4908ba

Browse files
authored
Update baseline.md
1 parent 82c7de2 commit c4908ba

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

  • content/learning-paths/servers-and-cloud-computing/ruby-on-rails

content/learning-paths/servers-and-cloud-computing/ruby-on-rails/baseline.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,13 +178,19 @@ Now, verify that the table exists and has the correct structure following the st
178178

179179
```console
180180
sudo -u postgres psql
181+
```
182+
In the PostgreSQL shell, run the following commands:
183+
184+
```console
181185
\c db_test_rubyapp_development
182186
\d tasks
187+
\q
183188
```
184189
- `sudo -u postgres psql` → Launches the PostgreSQL shell as the superuser `postgres`.
185190
- `\c db_test_rubyapp_development` → Connects to the Rails app’s development database.
186191
- `\d tasks` → Displays the schema (columns and types) of the `tasks` table.
187-
192+
- `\q → Exit from the PostgreSQL shell
193+
188194
You should see output similar to:
189195
```output
190196
psql (15.10)
@@ -236,9 +242,16 @@ Click on **"Create"**. The Firewall rule will be created successfully and can be
236242

237243
![ Create Firewall rule alt-text#center](images/firewall5.png "Figure 5: Create Firewall rule")
238244

239-
Once done, go back to the VM, and execute the below commands to allow port 3000:
245+
Once done, go back to the VM, install FirewallD
246+
```console
247+
sudo zypper install firewalld
248+
```
249+
250+
Now start FirewallD and execute the below commands to allow port 3000:
240251

241252
```console
253+
sudo systemctl start firewalld
254+
sudo systemctl enable firewalld
242255
sudo firewall-cmd --permanent --add-port=3000/tcp
243256
sudo firewall-cmd --reload
244257
```

0 commit comments

Comments
 (0)