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
Copy file name to clipboardExpand all lines: README.md
+1-53Lines changed: 1 addition & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,60 +5,8 @@ codeorigin.jquery.com
5
5
6
6
To publish a new release, project maintainers should commit new assets to the `cdn/` directory and push to the `main` branch. The jQuery CDN (code.jquery.com) and releases site (releases.jquery.com) will both automatically rebuild.
7
7
8
-
## jQuery CDN
9
-
10
-
The jQuery CDN assets are served from a static file server (Nginx), provisioned through Docker.
11
-
12
-
Prerequisites:
13
-
* Docker (see [Docker CE for Linux](https://docs.docker.com/install/#server), [Docker for Mac](https://hub.docker.com/editions/community/docker-ce-desktop-mac), or [Docker for Windows](https://docs.docker.com/docker-for-windows/install/)).
14
-
* Git.
15
-
16
-
### Local development
17
-
18
-
**Build the image**:
19
-
20
-
Build the image, by running the following in a clone of this repo:
21
-
22
-
```
23
-
docker build -t codeorigin ./
24
-
```
25
-
26
-
**Test the container**:
27
-
28
-
1. Start a container, exposing port 80:
29
-
```
30
-
docker run --rm -p 4000:80/tcp codeorigin
31
-
```
32
-
1. The site is now running at <http://localhost:4000/jquery-3.0.0.js>.
33
-
To stop the container, press `ctrl+c`
34
-
35
-
**Inspect the container**:
36
-
37
-
Run it with a shell entrypoint and set interactive/tty mode by adding the parameters `-i -t --entrypoint /bin/sh`.
38
-
Note that when inspecting the container, nginx will not be started.
39
-
40
-
```
41
-
docker run --rm -p 4000:80/tcp -it --entrypoint /bin/sh codeorigin
In `cfg/default.conf`, change `error_log … crit` to `error_log … debug` and then build+run as usual.
52
-
53
-
### Production deployment
54
-
55
-
1. At a hosting platform of your choosing, build or pull the container.
56
-
1. Finally, configure the CDN to use the container address as its origin, with special handling to augment origin pulls with a `Host: code.jquery.com` header.
57
-
58
-
-------
59
-
60
8
## WordPress build
61
9
62
10
This repository is also used to update the asset catalog at <https://releases.jquery.com/>, which is an auto-generated WordPress site.
63
11
64
-
To preview changes for a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](http://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](https://contribute.jquery.org/web-sites/).
12
+
To preview changes for a [`jquery-wp-content`](https://github.com/jquery/jquery-wp-content) instance, follow the [workflow instructions](https://contribute.jquery.org/web-sites/#workflow) from our documentation on [contributing to jQuery Foundation web sites](https://contribute.jquery.org/web-sites/).
0 commit comments