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
* initial tests for dotfiles
* fix order
* first attempt at dotfiles magic
* trigger rebuild
* fix symlink?
* fix symlink again
* another weird fix
* another test
* fix symlink this time?
* fix
|`DOTFILES_REPO`| GitHub path to a dotfiles repository with your personal configuration across devices. ||
41
42
---
42
43
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.
44
+
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.
44
45
45
46
## 💾 Persist your filesystem with `rclone`
46
47
47
48
This image has built-in support for [rclone](https://rclone.org/) so that your files don't get lost when code-server is re-deployed.
48
49
49
50
You can generate the rclone config on any machine, but it works great on the code-server environment itself, or Google Cloud Shell :)
50
51
51
-
```sh
52
+
```sh
52
53
# 1. install rclone
53
54
# see https://rclone.org/install/ for other install options
54
55
$ curl https://rclone.org/install.sh | sudo bash
@@ -66,15 +67,20 @@ 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 ||
70
+
| RCLONE_REMOTE_NAME | the name of the remote you added in step 2.<br />check with `$ rclone listremotes`| code-server-remote ||
70
71
| RCLONE_SOURCE | source directory to sync files in the code-server container | the project directory: `/home/coder/project`||
71
72
| 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 |
73
+
| RCLONE_VSCODE_TASKS | import push and pull shortcuts into VS Code
74
+
75
+

76
+
77
+
| true |
78
+
73
79
| RCLONE_AUTO_PUSH | automatically push files on startup if the rclone remote is empty (environment -> rclone remote) | true ||
74
80
| RCLONE_AUTO_PULL | automatically pull files on startup if the rclone remote is not empty (rclone -> environment remote) | true ||
75
81
| RCLONE_FLAGS | additional flags to attach to the push and pull script.<br />type `$ rclone help flags` for a list. |||
76
82
77
-
```sh
83
+
```sh
78
84
79
85
# --- How to use ---
80
86
@@ -90,8 +96,8 @@ $ sh /home/coder/pull_remote.sh # get latest files from the remote
90
96
91
97
## Todo
92
98
93
-
-[ ] Make `push_remote` and `pull_remote` commands in path
94
-
-[ ] Impliment file watcher or auto file sync in VS Code
95
-
-[ ] Attach a "push" on a git stash??
96
-
-[ ] Add support for SSH / VS Code remote access
97
-
-[ ] Make rclone logs visible in environment for debugging
99
+
*[ ] Make `push_remote` and `pull_remote` commands in path
100
+
*[ ] Impliment file watcher or auto file sync in VS Code
101
+
*[ ] Attach a "push" on a git stash??
102
+
*[ ] Add support for SSH / VS Code remote access
103
+
*[ ] Make rclone logs visible in environment for debugging
Copy file name to clipboardExpand all lines: guides/railway.md
+2-2
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&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)
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))
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