mirror of https://git.tuxpa.in/a/code-server.git
[doc/quickstart] use version from GH-379 (#1012)
This is the same PR but with some fixes for v2. Co-Authored-by: nwtnsqrd <30381446+nwtnsqrd@users.noreply.github.com> Signed-off-by: Ayane Satomi <chinodesuuu@gmail.com>
This commit is contained in:
parent
d7d3368cc2
commit
846dcbb947
|
@ -59,27 +59,23 @@ In some cases you might need to run code-server automatically once the host star
|
|||
|
||||
```ini
|
||||
[Unit]
|
||||
|
||||
Description=VSCode in a browser
|
||||
|
||||
Description=Code Server IDE
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
|
||||
Type=simple
|
||||
|
||||
ExecStart=/usr/bin/code-server $(pwd)
|
||||
|
||||
WorkingDirectory=$HOME/projects
|
||||
|
||||
ExecStop=/sbin/start-stop-daemon --stop -x /usr/bin/code-server
|
||||
|
||||
User=<USER>
|
||||
EnvironmentFile=$HOME/.profile
|
||||
WorkingDirectory=$HOME
|
||||
Restart=on-failure
|
||||
RestartSec=10
|
||||
|
||||
User=1000
|
||||
ExecStart=<PATH TO BINARY> $(pwd)
|
||||
|
||||
StandardOutput=file:/var/log/code-server-output.log
|
||||
StandardError=file:/var/log/code-server-error.log
|
||||
|
||||
[Install]
|
||||
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in New Issue