You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other code-server environment variables (such as `CODE_SERVER_CONFIG` ) can also be used. See the [code-server FAQ](https://github.com/cdr/code-server/blob/main/docs/FAQ.md) for details.
@@ -48,7 +51,7 @@ This image has built-in support for [rclone](https://rclone.org/) so that your f
48
51
49
52
You can generate the rclone config on any machine, but it works great on the code-server environment itself, or Google Cloud Shell :)
50
53
51
-
```sh
54
+
```sh
52
55
# 1. install rclone
53
56
# see https://rclone.org/install/ for other install options
54
57
$ curl https://rclone.org/install.sh | sudo bash
@@ -65,16 +68,16 @@ Now, you can add the following the environment variables in the code-server clou
| RCLONE_DATA | the encoded rclone config you copied in step 3 | n/a | ✅ |
69
-
| RCLONE_REMOTE_NAME | the name of the remote you added in step 2.<br />check with `$ rclone listremotes`| code-server-remote ||
71
+
| RCLONE_DATA | the encoded rclone config you copied in step 3 | n/a | ✅ |
72
+
| RCLONE_REMOTE_NAME | the name of the remote you added in step 2.<br />check with `$ rclone listremotes`| code-server-remote ||
70
73
| RCLONE_SOURCE | source directory to sync files in the code-server container | the project directory: `/home/coder/project`||
71
74
| RCLONE_DESTINATION | the path in the remote that rclone syncs to. change this if you have multiple code-server environments, or if you want to better organize your files. | code-server-files ||
72
-
| RCLONE_VSCODE_TASKS | import push and pull shortcuts into VS Code | true |
75
+
| RCLONE_VSCODE_TASKS | import push and pull shortcuts into VS Code | true|
73
76
| RCLONE_AUTO_PUSH | automatically push files on startup if the rclone remote is empty (environment -> rclone remote) | true ||
74
77
| RCLONE_AUTO_PULL | automatically pull files on startup if the rclone remote is not empty (rclone -> environment remote) | true ||
75
-
| RCLONE_FLAGS | additional flags to attach to the push and pull script.<br />type `$ rclone help flags` for a list. |||
78
+
| RCLONE_FLAGS | additional flags to attach to the push and pull script.<br />type `$ rclone help flags` for a list. |||
76
79
77
-
```sh
80
+
```sh
78
81
79
82
# --- How to use ---
80
83
@@ -83,23 +86,23 @@ $ sh /home/coder/push_remote.sh # save your uncomitted files to the remote
83
86
$ sh /home/coder/pull_remote.sh # get latest files from the remote
84
87
85
88
# In VS Code:
86
-
# use items in bottom bar or ctrl + P, run task: push_remote or pull_remote or
89
+
# use items in bottom bar or ctrl + P, run task: push_remote or pull_remote or
87
90
```
88
91
89
92
### Popular rclone flags
90
93
91
94
To avoid syncing unnecessary directories, add this to `RCLONE_FLAGS` :
92
95
93
-
```none
96
+
```none
94
97
--exclude "node_modules/**" --exclude ".git/**"
95
98
```
96
99
97
100
---
98
101
99
102
## Todo
100
103
101
-
*[ ] Make `push_remote` and `pull_remote` commands in path
102
-
*[ ] Impliment file watcher or auto file sync in VS Code
103
-
*[ ] Attach a "push" on a git stash??
104
-
*[ ] Add support for SSH / VS Code remote access
105
-
*[ ] Make rclone logs visible in environment for debugging
104
+
-[ ] Make `push_remote` and `pull_remote` commands in path
105
+
-[ ] Impliment file watcher or auto file sync in VS Code
106
+
-[ ] Attach a "push" on a git stash??
107
+
-[ ] Add support for SSH / VS Code remote access
108
+
-[ ] Make rclone logs visible in environment for debugging
0 commit comments