[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:
Ayane Satomi 2019-10-01 00:19:46 +08:00 committed by Asher
parent d7d3368cc2
commit 846dcbb947
1 changed files with 9 additions and 13 deletions

View File

@ -59,27 +59,23 @@ In some cases you might need to run code-server automatically once the host star
```ini ```ini
[Unit] [Unit]
Description=Code Server IDE
Description=VSCode in a browser
After=network.target After=network.target
[Service] [Service]
Type=simple Type=simple
User=<USER>
ExecStart=/usr/bin/code-server $(pwd) EnvironmentFile=$HOME/.profile
WorkingDirectory=$HOME
WorkingDirectory=$HOME/projects
ExecStop=/sbin/start-stop-daemon --stop -x /usr/bin/code-server
Restart=on-failure 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] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target
``` ```