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
* Avoid use of the privileged port 80, because it tends to require
extra rights, but also because it may be in use already in a way
that's harder to turn off. Ports like 4000 are more often used via
ad-hoc CLI procesess and presumably easier to turn off. For now
pick an uncommon port number, to likely not even need to do that.
* Remove the step to create `.env` by setting the root password
explicitly in docker-compose.yml.
* Remove support for SSL. Even with the new JQUERY_STAGING_FORMAT
configuration, a site can still only have one canonical name
in any given environment. One would need two separate installs
of jquery-wp-docker or some other dynamic complexity, and set
JQUERY_STAGING_FORMAT to :9412 for HTTP and e.g. :9413 for HTTPS
to ensure that the canonical redirect goes to the correct destination,
as well as to create links to other subdomains and pages with that
same configuration.
Instead of working on this more, I've removed it for now and
instead made sure the HTTP version works as good as possible.
I'm not aware of any HTTPS-specific features or behaviours on
these sites that would benefit local HTTPS testing. If thre are
any, we can work on a way to bring this back.
docker exec -i jquerydb mysql -u root -proot < wordpress.sql
83
45
```
84
46
85
-
8. Visit http://local.api.jquery.com, or https://local.api.jquery.com if you created certs.
47
+
6. Visit http://local.api.jquery.com:9412.
86
48
87
49
## Updating
88
50
@@ -93,13 +55,39 @@ docker compose down
93
55
docker compose up --build -d
94
56
```
95
57
96
-
## Notes
58
+
## Troubleshooting
59
+
60
+
### Ports
61
+
62
+
If you already use port 9412 on your host, you can create a `.env` file in this directory and set the following environment variable with a port number of your own choosing:
63
+
64
+
```
65
+
JQUERY_WP_HTTP_PORT=8080
66
+
```
67
+
68
+
Note that the MySQL port (JQUERY_WP_MYSQL_PORT=9414) is only exposed for debugging purposes, e.g. to allow you to connect to it from a GUI or some other tool. The webserver container connects to the MySQL container directly and does not use this port.
69
+
70
+
### DNS
97
71
98
-
You do not need to configure your `/etc/hosts` file for `local.*` because `jquery.com`'s DNS handles this foryou. However, if you plan to work offline, you can use the following rules:
72
+
You do not need to configure your `/etc/hosts` file to define `local.jquery.com`, because we have defined these domains in the production DNS for jquery.com as alias for localhost. However, if you plan to work offline, you can add the following rules:
0 commit comments