From 91bcbe496ba7a11bab7dbae0f99a58de117d63f5 Mon Sep 17 00:00:00 2001 From: Sebastian Duda <32878822+8sd@users.noreply.github.com> Date: Mon, 20 May 2019 08:29:27 +0000 Subject: [PATCH 1/7] Fix formatting issue --- doc/self-hosted/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index 008aac3b..c00b57ba 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -43,7 +43,7 @@ Options: --cert --cert-key -e, --extensions-dir Set the root path for extensions. - -d --user-data-dir Specifies the directory that user data is kept in, useful when running as root. + -d, --user-data-dir Specifies the directory that user data is kept in, useful when running as root. --data-dir DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored. -h, --host Customize the hostname. (default: "0.0.0.0") -o, --open Open in the browser on startup. From e2eaa0aa4eb5ee4afe9634a54f2170ca3719bb8d Mon Sep 17 00:00:00 2001 From: Sebastian Duda <32878822+8sd@users.noreply.github.com> Date: Tue, 28 May 2019 07:10:20 +0000 Subject: [PATCH 2/7] Align intend of description Co-Authored-By: Sergio Moura --- doc/self-hosted/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index c00b57ba..1c40de99 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -43,7 +43,7 @@ Options: --cert --cert-key -e, --extensions-dir Set the root path for extensions. - -d, --user-data-dir Specifies the directory that user data is kept in, useful when running as root. + -d, --user-data-dir Specifies the directory that user data is kept in, useful when running as root. --data-dir DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored. -h, --host Customize the hostname. (default: "0.0.0.0") -o, --open Open in the browser on startup. From 46207cfe108629c9e40c4be38d86ba504914b681 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Mon, 27 May 2019 23:27:05 -0400 Subject: [PATCH 3/7] register service worker at relative scope Co-Authored-By: Ian Reinhart Geiser --- packages/web/src/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/index.html b/packages/web/src/index.html index 4e8473b5..7928be13 100644 --- a/packages/web/src/index.html +++ b/packages/web/src/index.html @@ -29,7 +29,7 @@ if ("serviceWorker" in navigator) { // Use the window load event to keep the page load performant window.addEventListener("load", () => { - navigator.serviceWorker.register("/service-worker.js"); + navigator.serviceWorker.register('service-worker.js', {scope: './'}); }); } From 9b5a43e4bd4d04a3dc51e55478ab5ccbc13c21a8 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Mon, 27 May 2019 23:27:30 -0400 Subject: [PATCH 4/7] use local workbox to simplify csp Co-Authored-By: Ian Reinhart Geiser --- scripts/webpack.client.config.js | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/webpack.client.config.js b/scripts/webpack.client.config.js index 31ab2a7e..b3b88570 100644 --- a/scripts/webpack.client.config.js +++ b/scripts/webpack.client.config.js @@ -68,6 +68,7 @@ module.exports = (options = {}) => merge( }) ].concat(prod ? [ new GenerateSW({ + importWorkboxFrom: "local", include: [cachePattern], runtimeCaching: [{ urlPattern: cachePattern, From 46298c7675db68114ce3e271163f6487c8374f45 Mon Sep 17 00:00:00 2001 From: tsk-nkgw Date: Fri, 31 May 2019 00:42:09 +0900 Subject: [PATCH 5/7] fix typos in wget url --- doc/admin/install/aws.md | 6 +++--- doc/admin/install/digitalocean.md | 6 +++--- doc/admin/install/google_cloud.md | 6 +++--- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/doc/admin/install/aws.md b/doc/admin/install/aws.md index 2018ee09..32d63867 100644 --- a/doc/admin/install/aws.md +++ b/doc/admin/install/aws.md @@ -39,15 +39,15 @@ If you're just starting out, we recommend [installing code-server locally](../.. ``` - Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page): ``` - wget https://github.com/cdr/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz + wget https://github.com/cdr/code-server/releases/download/{version}/code-server{version}-linux-x64.tar.gz ``` - Extract the downloaded tar.gz file with this command, for example: ``` - tar -xvzf code-server-{version}-linux-x64.tar.gz + tar -xvzf code-server{version}-linux-x64.tar.gz ``` - Navigate to extracted directory with this command: ``` - cd code-server-{version}-linux-x64 + cd code-server{version}-linux-x64 ``` - If you run into any permission errors, make the binary executable by running: ``` diff --git a/doc/admin/install/digitalocean.md b/doc/admin/install/digitalocean.md index e167694d..9c412efc 100644 --- a/doc/admin/install/digitalocean.md +++ b/doc/admin/install/digitalocean.md @@ -22,15 +22,15 @@ If you're just starting out, we recommend [installing code-server locally](../.. ``` - Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page): ``` - wget https://github.com/cdr/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz + wget https://github.com/cdr/code-server/releases/download/{version}/code-server{version}-linux-x64.tar.gz ``` - Extract the downloaded tar.gz file with this command, for example: ``` - tar -xvzf code-server-{version}-linux-x64.tar.gz + tar -xvzf code-server{version}-linux-x64.tar.gz ``` - Navigate to extracted directory with this command: ``` - cd code-server-{version}-linux-x64 + cd code-server{version}-linux-x64 ``` - If you run into any permission errors when attempting to run the binary: ``` diff --git a/doc/admin/install/google_cloud.md b/doc/admin/install/google_cloud.md index 72f4ad21..aaaa1d12 100644 --- a/doc/admin/install/google_cloud.md +++ b/doc/admin/install/google_cloud.md @@ -32,17 +32,17 @@ https://github.com/cdr/code-server/releases/latest - Replace {version} in the following command with the version found on the releases page and run it (or just copy the download URL from the releases page): ``` -wget https://github.com/cdr/code-server/releases/download/{version}/code-server-{version}-linux-x64.tar.gz +wget https://github.com/cdr/code-server/releases/download/{version}/code-server{version}-linux-x64.tar.gz ``` - Extract the downloaded tar.gz file with this command, for example: ``` -tar -xvzf code-server-{version}-linux-x64.tar.gz +tar -xvzf code-server{version}-linux-x64.tar.gz ``` - Navigate to extracted directory with this command: ``` -cd code-server-{version}-linux-x64 +cd code-server{version}-linux-x64 ``` - Make the binary executable if you run into any errors regarding permission: From d950e3c9dea23ece704fc7f63b2f0a2b2032f047 Mon Sep 17 00:00:00 2001 From: Sebastian Duda Date: Tue, 28 May 2019 09:12:45 +0200 Subject: [PATCH 6/7] Fix missing comma in cli-help --- packages/server/src/cli.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/cli.ts b/packages/server/src/cli.ts index 629a961d..89ad7f46 100644 --- a/packages/server/src/cli.ts +++ b/packages/server/src/cli.ts @@ -28,7 +28,7 @@ commander.version(process.env.VERSION || "development") .option("-e, --extensions-dir ", "Override the main default path for user extensions.") .option("--extra-extensions-dir [dir]", "Path to an extra user extension directory (repeatable).", collect, []) .option("--extra-builtin-extensions-dir [dir]", "Path to an extra built-in extension directory (repeatable).", collect, []) - .option("-d --user-data-dir ", "Specifies the directory that user data is kept in, useful when running as root.") + .option("-d, --user-data-dir ", "Specifies the directory that user data is kept in, useful when running as root.") .option("--data-dir ", "DEPRECATED: Use '--user-data-dir' instead. Customize where user-data is stored.") .option("-h, --host ", "Customize the hostname.", "0.0.0.0") .option("-o, --open", "Open in the browser on startup.", false) From 3f2ad7b7192de37879ffbfd1113dee3bddabada1 Mon Sep 17 00:00:00 2001 From: Dean Sheather Date: Mon, 8 Jul 2019 14:55:37 +0000 Subject: [PATCH 7/7] Fix self-hosted documentation screenshot URL (#836) --- doc/self-hosted/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/self-hosted/index.md b/doc/self-hosted/index.md index b192cf20..ffa0b735 100644 --- a/doc/self-hosted/index.md +++ b/doc/self-hosted/index.md @@ -25,7 +25,7 @@ It takes just a few minutes to get your own self-hosted server running. If you'v > NOTE: Be careful with your password as sharing it will grant those users access to your server's file system ### Things To Know -- When you visit the IP for your code-server instance, you will be greeted with a page similar to the following screenshot. Code-server is using a self-signed SSL certificate for easy setup. In Chrome/Chromium, click **"Advanced"** then click **"proceed anyway"**. In Firefox, click **Advanced**, then **Add Exception**, then finally **Confirm Security Exception**. +- When you visit the IP for your code-server instance, you will be greeted with a page similar to the following screenshot. Code-server is using a self-signed SSL certificate for easy setup. In Chrome/Chromium, click **"Advanced"** then click **"proceed anyway"**. In Firefox, click **Advanced**, then **Add Exception**, then finally **Confirm Security Exception**. ## Usage
code-server --help