From 8762cb33e8b1c76be6c54e183a57518e89859f48 Mon Sep 17 00:00:00 2001 From: Amblizer Date: Sun, 2 Jun 2019 00:42:55 -0700 Subject: [PATCH] comment port and update README --- containers/ruby-2-sinatra/.devcontainer/devcontainer.json | 6 +++--- containers/ruby-2-sinatra/README.md | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/containers/ruby-2-sinatra/.devcontainer/devcontainer.json b/containers/ruby-2-sinatra/.devcontainer/devcontainer.json index 6c10870338..4aa1a312e1 100644 --- a/containers/ruby-2-sinatra/.devcontainer/devcontainer.json +++ b/containers/ruby-2-sinatra/.devcontainer/devcontainer.json @@ -5,10 +5,10 @@ "rebornix.Ruby" ], - // Change the port number if you are not using default port in Sinatra - "appPort": [4567], + // Uncomment and edit the next line if you want to publish any ports. + // "appPort": ["4567:4567"] // Uncomment the next line to run commands after the container is created. - // "postCreateCommand": "ruby ./app -o 0.0.0.0 -p 80" + // "postCreateCommand": "" } \ No newline at end of file diff --git a/containers/ruby-2-sinatra/README.md b/containers/ruby-2-sinatra/README.md index b83d1cdde8..6a520b592c 100644 --- a/containers/ruby-2-sinatra/README.md +++ b/containers/ruby-2-sinatra/README.md @@ -39,7 +39,7 @@ 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-sinatra` folder. 5. After the folder has opened in the container, press F5 to start the project. -6. You should see "Try http://localhost:4567/ in the browser!" in the Debug Console, and by browsing http://localhost:4567/ you should see "Hello from Sinatra!". +6. You should see "Try http://localhost:4567/ in the browser!" in the Debug Console. Press F1. Select **Remote-Containers: Forward Porrt From Container...** then choose **Forward 4567**, and by browsing http://localhost:4567/ you should see "Hello from Sinatra!". 7. From here, you can add breakpoints or edit the contents of the `test-project` folder to do further testing. ## License