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
|`DOTFILES_REPO`| GitHub path to a dotfiles repository with your personal configuration across devices. ||
42
41
---
43
42
44
43
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.
@@ -70,12 +69,7 @@ Now, you can add the following the environment variables in the code-server clou
70
69
| RCLONE_REMOTE_NAME | the name of the remote you added in step 2.<br />check with `$ rclone listremotes`| code-server-remote ||
71
70
| RCLONE_SOURCE | source directory to sync files in the code-server container | the project directory: `/home/coder/project`||
72
71
| 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 ||
73
-
| RCLONE_VSCODE_TASKS | import push and pull shortcuts into VS Code
74
-
75
-

76
-
77
-
| true |
78
-
72
+
| RCLONE_VSCODE_TASKS | import push and pull shortcuts into VS Code | true |
79
73
| RCLONE_AUTO_PUSH | automatically push files on startup if the rclone remote is empty (environment -> rclone remote) | true ||
80
74
| RCLONE_AUTO_PULL | automatically pull files on startup if the rclone remote is not empty (rclone -> environment remote) | true ||
81
75
| RCLONE_FLAGS | additional flags to attach to the push and pull script.<br />type `$ rclone help flags` for a list. |||
@@ -92,6 +86,14 @@ $ sh /home/coder/pull_remote.sh # get latest files from the remote
92
86
# use items in bottom bar or ctrl + P, run task: push_remote or pull_remote or
93
87
```
94
88
89
+
### Popular rclone flags
90
+
91
+
To avoid syncing unnecessary directories, add this to `RCLONE_FLAGS` :
Copy file name to clipboardExpand all lines: guides/railway.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Use Railway + code-server to get a dev environment that you can access from any
8
8
9
9
## Step 1: Click button to deploy
10
10
11
-
[](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Fcdr%2Fdeploy-code-server%2F&envs=PASSWORD%2CGIT_REPO%2CDOTFILES_REPO&optionalEnvs=GIT_REPO%2CDOTFILES_REPO&PASSWORDDesc=Your+password+to+log+in+to+code-server+with&GIT_REPODesc=A+git+repo+to+clone+and+open+in+code-server+(ex.+https%3A%2F%2Fgithub.com%2Fcdr%2Fdocs.git)&DOTFILES_REPODesc=Environment+configuration+not+related+to+this+specific+environment.+(see+https%3A%2F%2Fdotfiles.github.io%2F))
11
+
[](https://railway.app/new?template=https%3A%2F%2Fgithub.com%2Fcdr%2Fdeploy-code-server&envs=PASSWORD%2CGIT_REPO&PASSWORDDesc=Your+password+to+log+in+to+code-server+with&GIT_REPODesc=A+git+repo+to+clone+and+open+in+code-server+%28ex.+https%3A%2F%2Fgithub.com%2Fcdr%2Fdocs.git%29)
12
12
13
13
## Step 2: Configure & launch your environment
14
14
@@ -27,7 +27,7 @@ You also need to specity a `PASSWORD` and a `GIT_REPO` to clone in your environm
27
27
1. Open the source repo in GitHub and edit the `Dockerfile`
28
28
1. Add some custom tools (like NodeJS) and push to the main branch:
29
29
30
-
```Dockerfile
30
+
```Dockerfile
31
31
# You can add custom software and dependencies for your environment here. Some examples:
32
32
33
33
# RUN code-server --install-extension esbenp.prettier-vscode
0 commit comments