diff --git a/containers/ruby-2-rails-5/.devcontainer/devcontainer.json b/containers/ruby-2-rails-5/.devcontainer/devcontainer.json index e8bf6f1c25..7c2170f70e 100644 --- a/containers/ruby-2-rails-5/.devcontainer/devcontainer.json +++ b/containers/ruby-2-rails-5/.devcontainer/devcontainer.json @@ -9,7 +9,7 @@ }, // Uncomment the next line if you want to publish any ports. - // "appPort": ["80:80"], + // "appPort": ["3000:3000"], // Uncomment the next line to run commands after the container is created. // "postCreateCommand": "cd ${input:projectName} && bundle install", diff --git a/containers/ruby-2-rails-5/.vscode/launch.json b/containers/ruby-2-rails-5/.vscode/launch.json index 90f09285e6..7edfd72510 100644 --- a/containers/ruby-2-rails-5/.vscode/launch.json +++ b/containers/ruby-2-rails-5/.vscode/launch.json @@ -15,7 +15,7 @@ "program": "bin/rails", "postDebugTask": "Delete test-project", // Setup debug binding IP and port. - "args": ["s", "-b", "0.0.0.0", "-p", "80"], + "args": ["s", "-b", "0.0.0.0", "-p", "3000"], } ] } \ No newline at end of file diff --git a/containers/ruby-2-rails-5/README.md b/containers/ruby-2-rails-5/README.md index 740d2053e0..1022b6e560 100644 --- a/containers/ruby-2-rails-5/README.md +++ b/containers/ruby-2-rails-5/README.md @@ -39,8 +39,10 @@ This definition includes some test code that will help you verify it is working 3. Start VS Code, press F1, and select **Remote-Containers: Open Folder in Container...** 4. Select the `containers/ruby-2-rails-5` folder. 5. After the folder has opened in the container, press F5 to start the project. -6. You should see "* Listening on tcp://0.0.0.0:80" in the Debug Console. Press F1. Select **Remote-Containers: Forward Porrt From Container...** then choose **Forward 80**, and by browsing http://localhost/ you should see "Yay! You’re on Rails!". -7. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. +6. You should see "* Listening on tcp://0.0.0.0:3000" in the Debug Console. +7. Press F1. Select **Remote-Containers: Forward Port from Container...** then choose **Forward 3000**. +8. By browsing http://localhost:3000/ you should see "Yay! You’re on Rails!". +9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. ## License