Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 4623f33

Browse files
committed
Change test project to work w/non-root user
1 parent efbd7bf commit 4623f33

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

containers/ruby-2-rails-5/.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010

1111
// Uncomment the next line if you want to publish any ports.
12-
// "appPort": ["80:80"],
12+
// "appPort": ["3000:3000"],
1313

1414
// Uncomment the next line to run commands after the container is created.
1515
// "postCreateCommand": "cd ${input:projectName} && bundle install",

containers/ruby-2-rails-5/.vscode/launch.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"program": "bin/rails",
1616
"postDebugTask": "Delete test-project",
1717
// Setup debug binding IP and port.
18-
"args": ["s", "-b", "0.0.0.0", "-p", "80"],
18+
"args": ["s", "-b", "0.0.0.0", "-p", "3000"],
1919
}
2020
]
2121
}

containers/ruby-2-rails-5/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@ This definition includes some test code that will help you verify it is working
3939
3. Start VS Code, press <kbd>F1</kbd>, and select **Remote-Containers: Open Folder in Container...**
4040
4. Select the `containers/ruby-2-rails-5` folder.
4141
5. After the folder has opened in the container, press <kbd>F5</kbd> to start the project.
42-
6. You should see "* Listening on tcp://0.0.0.0:80" in the Debug Console. Press <kbd>F1</kbd>. Select **Remote-Containers: Forward Porrt From Container...** then choose **Forward 80**, and by browsing http://localhost/ you should see "Yay! You’re on Rails!".
43-
7. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.
42+
6. You should see "* Listening on tcp://0.0.0.0:3000" in the Debug Console.
43+
7. Press <kbd>F1</kbd>. Select **Remote-Containers: Forward Port from Container...** then choose **Forward 3000**.
44+
8. By browsing http://localhost:3000/ you should see "Yay! You’re on Rails!".
45+
9. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing.
4446

4547
## License
4648

0 commit comments

Comments
 (0)