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.

  • dazchad@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    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

    • Vampire_Duchess@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      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.

    • Pesfreak92@alien.topB
      link
      fedilink
      English
      arrow-up
      1
      ·
      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.

  • gwillen@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    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.

  • walwalka@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    11 months ago

    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.

    • Vampire_Duchess@alien.topOPB
      link
      fedilink
      English
      arrow-up
      1
      ·
      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