this post was submitted on 18 Oct 2023
1 points (100.0% liked)

Self-Hosted Main

502 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I'm starting to work with JavaScript, and I plan to explore frameworks. While I currently use Visual Studio Code on my Mac, Windows, and Linux laptops, I'm considering the idea of self-hosting a Visual Studio Code server on my own VPS.(debian server).

I've also discovered the utility of Docker containers for my projects, allowing me to set up environments with the necessary tools like Node.js. This way, I can easily manage my development environment.

So, I'm curious, what's your setup like? I'm trying to avoid the hassle of switching between three different computers or clients. I believe that if I can access my VPS and start working on my code, it would greatly streamline my development process.

top 7 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 11 months ago (2 children)

I have vscode but on my os and then connect via the remote extension. Works well.

For docker, I’d rather go with VM if you want isolation from one project to another. They are easier to snapshot and easier to reason around for development in my opinion

[–] [email protected] 1 points 11 months ago

Have the same setup for VSCode. I use it to edit files and start/stop Docker containers. Of course it can do much more. Very convenient. Maybe even more convenient than Portainer.

[–] [email protected] 1 points 11 months ago

thank you for sharing,

although I don't have my Promox server (dell thin client i5) died a month a go. I would do VM or LXC container. My local VPS is just an old laptop core duo 2 and raspberry pi 2 and doing the snapshots would be easier but I'm stuck at the moment with those options.

[–] [email protected] 1 points 11 months ago (1 children)

I work in JS, React and a postgres DB, I decided to go with a bit of a mix. I was already using Github as my repo and local containers for my apps. But I was building my containers locally and deploying via scripts.

I recently adopted using actions with self-hosted runners to create my images. For dev it runs on the self-hosted and drops the image locally. For prod, it's run on the self-hosted and uploaded to my image registry(docker hub). I am working on terraform now to watch for the new image and create a new container with it.

I am also using GitHub secrets for my environment variables.

[–] [email protected] 1 points 11 months ago

thank you for sharing your workflow although may be a bit advance for me I see where is going. I work with sysadmin areas, but I'm really interested into devops and cloud engineering for AWS. But someone invite me to join a dev team for a js, React and postgress DB project.

So I'm starting to learn Js. So I wanted to have some insights in how to approach this. thank you

[–] [email protected] 1 points 11 months ago (1 children)

My experience has been that remote use of VS Code over SSH is completely seamless. I never had to install any packages or do anything to manage VS Code state on the server side. It handles everything itself.

[–] [email protected] 1 points 11 months ago

thank you for sharing!