Skip to content

Commit b48e227

Browse files
author
Hikari Kibo
authored
Merge branch 'master' into docker-user
2 parents b405497 + 3b8cd0a commit b48e227

File tree

13 files changed

+122
-92
lines changed

13 files changed

+122
-92
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ RUN yarn && yarn task build:server:binary
1717

1818
# We deploy with ubuntu so that devs have a familiar environment.
1919
FROM ubuntu:18.10
20-
2120
# We unfortunately cannot use update-locale because docker will not use the env variables
2221
# configured in /etc/default/locale so we need to set it manually.
2322
ENV LANG=en_US.UTF-8

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
Try it out:
1111
```bash
12-
docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server --allow-http --no-auth
12+
docker run -t -p 127.0.0.1:8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth
1313
```
1414

1515
- Code on your Chromebook, tablet, and laptop with a consistent dev environment.
@@ -33,7 +33,7 @@ See docker oneliner mentioned above. Dockerfile is at [/Dockerfile](/Dockerfile)
3333

3434
### Binaries
3535

36-
1. [Download a binary](https://github.com/codercom/code-server/releases) (Linux and OSX supported. Windows coming soon)
36+
1. [Download a binary](https://github.com/codercom/code-server/releases) (Linux and OS X supported. Windows coming soon)
3737
2. Start the binary with the project directory as the first argument
3838

3939
```
@@ -59,7 +59,7 @@ How to [secure your setup](/doc/security/ssl.md).
5959
### Future
6060
6161
- Windows support.
62-
- Electron and ChromeOS applications to bridge the gap between local<->remote.
62+
- Electron and Chrome OS applications to bridge the gap between local<->remote.
6363
- Run VS Code unit tests against our builds to ensure features work as expected.
6464
6565
## Contributing

doc/admin/install/digitalocean.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ If you're just starting out, we recommend [installing code-server locally](../..
2727
> To ensure the connection between you and your server is encrypted view our guide on [securing your setup](../security/ssl.md)
2828
- Finally start the code-server
2929
```
30-
sudo ./code-server-linux -p80
30+
sudo ./code-server-linux -p 80
3131
```
3232
> For instructions on how to keep the server running after you end your SSH session please checkout [how to use systemd](https://www.linode.com/docs/quick-answers/linux/start-service-at-boot/) to start linux based services if they are killed
3333
- When you visit the public IP for your Digital Ocean instance, you will be greeted with this page. Code-server is using a self-signed SSL certificate for easy setup. To proceed to the IDE, click **"Advanced"**<img src ="../../assets/chrome_warning.png">
3434
- Then click **"proceed anyway"**<img src="../../assets/chrome_confirm.png">
3535

3636
---
37-
> NOTE: If you get stuck or need help, [file an issue](https://github.com/codercom/code-server/issues/new?&title=Improve+self-hosted+quickstart+guide), [tweet (@coderhq)](https://twitter.com/coderhq) or [email](mailto:support@coder.com?subject=Self-hosted%20quickstart%20guide).
37+
> NOTE: If you get stuck or need help, [file an issue](https://github.com/codercom/code-server/issues/new?&title=Improve+self-hosted+quickstart+guide), [tweet (@coderhq)](https://twitter.com/coderhq) or [email](mailto:support@coder.com?subject=Self-hosted%20quickstart%20guide).

doc/assets/aws_ubuntu.png

-7.69 KB
Loading

doc/assets/chrome_confirm.png

-15.1 KB
Loading

doc/assets/chrome_warning.png

-14.2 KB
Loading

doc/assets/cli.png

-23.9 KB
Loading

doc/assets/ide.png

-381 KB
Loading

doc/assets/logo-horizontal.png

-4.52 KB
Loading

doc/assets/server-password-modal.png

-38.5 KB
Loading

packages/ide/src/fill/electron.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ const newCreateElement = <K extends keyof HTMLElementTagNameMap>(tagName: K): HT
4646
return oldSrc!.get!.call(img);
4747
},
4848
set: (value: string): void => {
49-
value = value.replace(/file:\/\//g, "/resource");
49+
if (value) {
50+
value = value.replace(/file:\/\//g, "/resource");
51+
}
5052
oldSrc!.set!.call(img, value);
5153
},
5254
});
@@ -65,7 +67,9 @@ const newCreateElement = <K extends keyof HTMLElementTagNameMap>(tagName: K): HT
6567
return oldInnerHtml!.get!.call(style);
6668
},
6769
set: (value: string): void => {
68-
value = value.replace(/file:\/\//g, "/resource");
70+
if (value) {
71+
value = value.replace(/file:\/\//g, "/resource");
72+
}
6973
oldInnerHtml!.set!.call(style, value);
7074
},
7175
});

scripts/vscode.patch

Lines changed: 109 additions & 82 deletions
Large diffs are not rendered by default.

scripts/webpack.client.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ const HtmlWebpackPlugin = require("html-webpack-plugin");
77
// const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
88

99
const root = path.join(__dirname, "..");
10-
const prod = process.env.NODE_ENV === "production";
10+
const prod = process.env.NODE_ENV === "production" || process.env.CI === "true";
1111

1212
module.exports = (options = {}) => merge(
1313
require("./webpack.general.config")(options), {
14-
devtool: prod ? "source-map" : "cheap-module-eval-source-map",
14+
devtool: prod ? "none" : "cheap-module-eval-source-map",
1515
mode: prod ? "production" : "development",
1616
entry: prod ? options.entry : [
1717
"webpack-hot-middleware/client?reload=true&quiet=true",

0 commit comments

Comments
 (0)