Files
demo001/remotebuild.txt
Ariel Roffman 233da7e7ea initial commit
2026-05-13 19:12:36 -04:00

48 lines
1.7 KiB
Plaintext

Use VS Code Remote SSH to build on the Linux server
1. Install the Remote SSH extension
Install Remote - SSH from the VS Code Extensions view.
2. Add your SSH host
Open Command Palette: Ctrl+Shift+P
Run Remote-SSH: Add New SSH Host...
Enter something like:
ssh root@your.remote.server
Choose the SSH config file to save it.
3. Connect to the remote host
Open Command Palette: Ctrl+Shift+P
Run Remote-SSH: Connect to Host...
Select root@your.remote.server
VS Code will open a new window connected to the remote machine.
4. Open your project folder on the remote server
In the remote VS Code window, use File > Open Folder...
Open the project directory on the Linux server
If your project is only local, copy it to the remote host first, or clone it there from git.
5. Build and run remotely
Open a terminal in VS Code (`Ctrl+``)
This terminal runs on the remote Linux machine
Run:
dotnet restore
dotnet build
dotnet run
6. If you want Docker/Compose on the remote
Since you have root access on the server, you can install Docker there and use it remotely:
Install Docker on remote Linux
Install Docker Compose plugin if needed
Run:
docker compose up --build
7. Optional: Use remote ports
If your API listens on 5000, you can forward that port from remote to local using VS Code Remote Explorer or the prompt when the app starts.
Why this works
VS Code Remote SSH lets you edit locally while using the remote machine for:
building
restoring packages
running the app
optionally building Docker images
Quick summary
Install Remote - SSH
Add root@your.server
Connect & open remote folder
Build in remote terminal
If you want, I can also give you the exact ~/.ssh/config entry and the commands to install Docker on the remote Linux server.
Raptor mini (Preview) • 1x