Skip to content

Commit 5ba6062

Browse files
adding Port to DevContainer and added description in README
1 parent 37a2589 commit 5ba6062

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,6 @@
1010
"1000:1000"
1111
],
1212
"workspaceFolder": "/usr/src/app",
13-
"remoteUser": "vscode"
13+
"remoteUser": "vscode",
14+
"forwardPorts": [4000] // Portweiterleitung hinzufügen
1415
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ See more info at https://academicpages.github.io/
2020
When you are initially working on your website, it is very useful to be able to preview the changes locally before pushing them to GitHub. To work locally you will need to:
2121

2222
1. Clone the repository and made updates as detailed above.
23+
24+
### Using the DevContainer in VS Code
25+
If you are using VS Code you can use the DevContainer that comes with this Repository. Normally VS Code detects that a DevContainer Config is available and asks you if you want to use the DevContainer. If this doesn't happen you can manually start the DevContainer by **F1->DevContainer: Reopen in Container**. This restarts your VS Code in the Container and automatically hosts your academic page locally on http://localhost:4000. All changes will be updated live to that page after a few seconds.
26+
27+
### Using a different IDE
2328
1. Make sure you have ruby-dev, bundler, and nodejs installed
2429

2530
On most Linux distribution and [Windows Subsystem Linux](https://learn.microsoft.com/en-us/windows/wsl/about) the command is:

0 commit comments

Comments
 (0)