Skip to content

Commit 36be475

Browse files
authored
Merge branch 'main' into repo-sync
2 parents 9585ae0 + 800ec51 commit 36be475

4 files changed

Lines changed: 23 additions & 13 deletions

File tree

.github/workflows/staging-deploy-pr.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,10 @@ jobs:
303303
name: Install temporary dependencies
304304
run: npm install --no-save dotenv rimraf
305305

306+
# Install any additional dependencies *before* downloading the build artifact
307+
- name: Install Heroku client development-only dependency
308+
run: npm install --no-save heroku-client
309+
306310
- if: ${{ github.repository == 'github/docs-internal' }}
307311
name: Clone early access
308312
run: node script/early-access/clone-for-build.js
@@ -317,31 +321,28 @@ jobs:
317321
workflow: ${{ github.event.workflow_run.workflow_id }}
318322
run_id: ${{ env.BUILD_ACTIONS_RUN_ID }}
319323
name: pr_build
320-
path: ./
324+
path: ${{ env.RUNNER_TEMP }}
321325

322326
- name: Extract user-changes to temp directory
323327
run: |
324-
tar -x --file=app.tar -C "$RUNNER_TEMP/"
325-
rm app.tar
328+
mkdir $RUNNER_TEMP/app
329+
tar -x --file=$RUNNER_TEMP/app.tar -C "$RUNNER_TEMP/app/"
326330
327331
# Move the LFS content into the temp directory in chunks (destructively)
328332
- name: Move the LFS objects
329333
run: |
330-
git lfs ls-files --name-only | xargs -n 1 -I {} sh -c 'mkdir -p "$RUNNER_TEMP/$(dirname {})"; mv {} "$RUNNER_TEMP/$(dirname {})/"'
334+
git lfs ls-files --name-only | xargs -n 1 -I {} sh -c 'mkdir -p "$RUNNER_TEMP/app/$(dirname {})"; mv {} "$RUNNER_TEMP/app/$(dirname {})/"'
331335
332336
# Move the early access content into the temp directory (destructively)
333337
- if: ${{ github.repository == 'github/docs-internal' }}
334338
name: Move the early access content
335339
run: |
336-
mv assets/images/early-access "$RUNNER_TEMP/assets/images/"
337-
mv content/early-access "$RUNNER_TEMP/content/"
338-
mv data/early-access "$RUNNER_TEMP/data/"
340+
mv assets/images/early-access "$RUNNER_TEMP/app/assets/images/"
341+
mv content/early-access "$RUNNER_TEMP/app/content/"
342+
mv data/early-access "$RUNNER_TEMP/app/data/"
339343
340344
- name: Create a gzipped archive
341-
run: tar -cz --file app.tar.gz "$RUNNER_TEMP/"
342-
343-
- name: Install Heroku client development-only dependency
344-
run: npm install --no-save heroku-client
345+
run: tar -cz --file app.tar.gz "$RUNNER_TEMP/app/"
345346

346347
- name: Create a Heroku build source
347348
id: build-source
45.6 KB
Loading

content/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ shortTitle: Forward ports
2121

2222
Port forwarding gives you access to TCP ports running within your codespace. For example, if you're running a web application on port 4000, you can access the application from your browser to test and debug the application.
2323

24-
When an application running inside a codespace outputs a port to the console, {% data variables.product.prodname_codespaces %} detects the localhost URL pattern and automatically forwards the port. You can click on the URL in the terminal to open the port in a browser. For example, if an application outputs `http://127.0.0.1:4000` or `http://localhost:4000` to the console, the log would automatically convert the output to a clickable URL for port 4000.
24+
When an application running inside a codespace outputs a port to the console, {% data variables.product.prodname_codespaces %} detects the localhost URL pattern and automatically forwards the port. You can click on the URL in the terminal to open the port in a browser. For example, if an application outputs `http://127.0.0.1:4000` or `http://localhost:4000` to the console, the log would automatically convert the output to a clickable URL for port 4000. By default, {% data variables.product.prodname_codespaces %} forwards ports using HTTP.
2525

2626
![Automatic port forwarding](/assets/images/help/codespaces/automatic-port-forwarding.png)
2727

@@ -37,6 +37,15 @@ You can manually forward a port that wasn't forwarded automatically.
3737
1. Type the port number or address, then press enter.
3838
![Text box to type port button](/assets/images/help/codespaces/port-number-text-box.png)
3939

40+
## Using HTTPS forwarding
41+
42+
By default, {% data variables.product.prodname_codespaces %} forwards ports using HTTP but you can update any port to use HTTPS, as needed.
43+
44+
{% data reusables.codespaces.navigate-to-ports-tab %}
45+
1. Right click the port you want to update, then hover over **Change Port Protocol**.
46+
![Option to change port protocol](/assets/images/help/codespaces/update-port-protocol.png)
47+
1. Select the protocol needed for this port. The protocol that you select will be remembered for this port for the lifetime of the codespace.
48+
4049
## Labeling a port
4150

4251
You can label a port to make the port more easily identifiable in a list.

content/codespaces/getting-started/deep-dive.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Port forwarding determines which ports are made accessible to you from the remot
7272

7373
![Diagram showing how port forwarding works in a codespace](/assets/images/help/codespaces/port-forwarding.png)
7474

75-
When an application running inside {% data variables.product.prodname_codespaces %} outputs a port to the console, {% data variables.product.prodname_codespaces %} detects the localhost URL pattern and automatically forwards the port. You can click on the URL in the terminal or in the toast message to open the port in a browser. For more information on port forwarding, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)."
75+
When an application running inside {% data variables.product.prodname_codespaces %} outputs a port to the console, {% data variables.product.prodname_codespaces %} detects the localhost URL pattern and automatically forwards the port. You can click on the URL in the terminal or in the toast message to open the port in a browser. By default, {% data variables.product.prodname_codespaces %} forwards the port using HTTP. For more information on port forwarding, see "[Forwarding ports in your codespace](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace)."
7676

7777
While ports can be forwarded automatically, they are not publicly accessible to the internet. By default, all ports are private, but you can [manually make a port public](/codespaces/developing-in-codespaces/forwarding-ports-in-your-codespace#sharing-a-port) to share access through a URL.
7878

0 commit comments

Comments
 (0)