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

Commit

Permalink
Change test project to work w/non-root user
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuxel committed Sep 6, 2019
1 parent efbd7bf commit 4623f33
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion containers/ruby-2-rails-5/.devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion containers/ruby-2-rails-5/.vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
}
]
}
6 changes: 4 additions & 2 deletions containers/ruby-2-rails-5/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ This definition includes some test code that will help you verify it is working
3. Start VS Code, press <kbd>F1</kbd>, 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 <kbd>F5</kbd> to start the project.
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!".
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 <kbd>F1</kbd>. 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

Expand Down

0 comments on commit 4623f33

Please sign in to comment.