DEV Community

Discussion on: code-server deamon on your VPS

Collapse
 
kyorohiro profile image
kyorohiro (kiyohiro kawamura)

if code-server throw following error message

Unable to start the C/C++ language server. IntelliSense features will be disabled. Error: Error: Unable to read process.env.HOME
Enter fullscreen mode Exit fullscreen mode

you add a environment variable .

/opt/code-server.sh

#!/bin/sh

while true
do
  HOME=<YOUR HOME DIR PATH> PASSWORD=<Your Password> code-server --auth password --host 0.0.0.0 --port 8443 /app
  sleep 1
done
Enter fullscreen mode Exit fullscreen mode