8

I have this little problem,

there is no constant electricity In the country where I live, in fact for the past 4 days there was not a single blink.

I enable auto save on my vs code to save me from tears,

now I have a file server with backup batteries and since it's a laptop mobo that was converted to a server, hooking up the battery was a no brainer.

I just saved copies of my files on it and if I edited any of them I'll just overwrite the file. this was only possible if I did this before the power goes out or else I am stuck again.

I decided to try vs code extensions that will save me from all that copy and paste work.

tried ssh, unsupported architecture error, didn't care I just needed ftp or sftp

I tried the simple ftp/sftp extension. worked pretty well. allowed me to connect to the server and add the remote directory to my workspace and with autosave the changes are uploaded immediately which means once power is out I can continue on my mobile phone(I have some android text editors that support ftp).

little problem. I discovered some things just don't work. even if I opened the whole directory, the contents will not be loaded unless I open them up like stylesheets and images and whatnot.

imagine having to open every single damn file before it appears on the browser, very annoying.

I need a solution, I have really tried.

Comments
  • 2
    Css cache generator should help on css part, otherwise try to get vscode ssh remote on the file server to exec extensions there.
  • 8
    Self hotst GitLab / Gittea and auto commit / push on save with githooks.
  • 6
    Also, buy a UPS.
  • 3
    I started building my house to countryside, my solution to this problem was diesel generator and ups. It takes few seconds to generator to start, meanwhile ups keeps things alive. My total investment was around 7k eur, but my generator has to keep other utility systems running too, you can setup on budget solution up for few thousand
  • 2
    I got an UPS (APC models are cheap, if a tad awkward to always setup up..) with a 3kWh battery, they can be quite cheap 2nd hand, or even free if you know someone who can fix a broken one.

    Had a 2 hour power cut last night and didn't notice !

    Almost everything here is plumbed into it..

    (Such as extra lights in each room, TV's, router.)

    Next move, want a diesel generator too !

    I wonder what might make a for a cheap diesel generator enough to power a house and its electric heating and cooking, an old tractor engine ?
  • 0
    @melezorus34 so I have to install vscode on the server too?
  • 1
    @C0D4 seems complex. I'll look it up. thanks
  • 0
    @Avimelekh lol. I am not even working but thanks.
  • 1
    That sucks bro. You just made me realise how privileged I am.

    While I am not a hardcore techie to provide you with any solution(s), I hope things get better soon.
Add Comment