Skip to content

Commit 79e6a5e

Browse files
committed
Update Ruby on Rails quickstart tutorial to reflect port change from 8080 to 3000 for local application and Swagger documentation access.
1 parent 264dadb commit 79e6a5e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tutorial/markdown/ruby/ruby-on-rails/quickstart-ruby-on-rails.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ DB_PASSWORD=<password_for_user>
104104

105105
At this point, we have installed the dependencies, loaded the travel-sample data and configured the application with the credentials. The application is now ready and you can run it.
106106

107-
The application will run on port 8080 of your local machine (http://localhost:8080). You will find the Swagger documentation of the API which you can use to try the API endpoints.
107+
The application will run on port 3000 of your local machine (http://localhost:3000). You will find the Swagger UI to try the API endpoints.
108108

109-
The Swagger Page will be available at [http://localhost:8080/api-docs](http://localhost:8080/api-docs).
109+
The Swagger Page will be available at http://localhost:3000/api-docs.
110110

111111
```shell
112112
rails s
@@ -119,7 +119,6 @@ If you prefer to run this quick start using Docker, we have provided the Dockerf
119119
- Build the Docker image
120120

121121
```sh
122-
cd src
123122
docker build -t ruby-on-rails-quickstart .
124123
```
125124

@@ -131,15 +130,15 @@ docker run --env-file dev.env -p 3000:3000 ruby-on-rails-quickstart
131130

132131
> Note: The `.env` file has the connection information to connect to your Capella cluster. With the `--env-file`, docker will inject those environment variables to the container.
133132
134-
Once the app is up and running, you can launch your browser and go to the [Swagger documentation](https://localhost:8080/) to test the APIs.
133+
Once the app is up and running, open http://localhost:3000/api-docs to test the APIs.
135134

136135
### Verifying the Application
137136

138137
Once the application starts, you can see the details of the application on the logs.
139138

140139
![Application Startup](app_startup.png)
141140

142-
The application will run on port 8080 of your local machine (http://localhost:8080). You will find the interactive Swagger documentation of the API if you go to the URL in your browser. Swagger documentation is used in this demo to showcase the different API end points and how they can be invoked. More details on the Swagger documentation can be found in the [appendix](#swagger-documentation).
141+
The application will run on port 3000 of your local machine (http://localhost:3000). You will find the interactive Swagger documentation of the API if you go to the URL in your browser. Swagger documentation is used in this demo to showcase the different API end points and how they can be invoked. More details on the Swagger documentation can be found in the [appendix](#swagger-documentation).
143142

144143
![Swagger Documentation](swagger_documentation.png)
145144

0 commit comments

Comments
 (0)