Skip to content

Commit 6385d07

Browse files
committed
Merge remote-tracking branch 'origin/main' into production
2 parents e87bfd9 + e5dca13 commit 6385d07

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

Dockerfile.nginx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
# Nginx container for running WordPress on production
2-
32
FROM nginx:stable-alpine3.19
43

54
# Ensure that important users and groups have consistent IDs across all containers.
65
# 82 is the standard uid/gid for "www-data" on php-fpm Alpine.
76
RUN adduser -u 82 -D -S -G www-data www-data \
8-
&& addgroup nginx www-data \
9-
&& addgroup -g 33 xfs || true \
10-
&& addgroup nginx xfs
7+
&& addgroup nginx www-data
118

129
COPY ./config/all/nginx/nginx.conf /etc/nginx/
1310
COPY ./config/all/nginx/templates /etc/nginx/templates

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"wpackagist-plugin/multisite-plugin-manager":"^3.1.6",
7070
"wpackagist-plugin/ninja-forms":"^3.6.16",
7171
"wpackagist-plugin/participants-database":"^2.1.5",
72-
"wpackagist-plugin/pressforward":"^5.2.9",
72+
"wpackagist-plugin/pressforward":"^5.8.0",
7373
"wpackagist-plugin/redis-cache":"^2.0.26",
7474
"wpackagist-plugin/so-widgets-bundle":"^1.36.0",
7575
"wpackagist-plugin/wordpress-importer":"^0.8",

config/all/nginx/templates/redirects.conf.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,4 +608,4 @@ if ($http_host = "stemedplus.commons.msu.edu") {
608608

609609
if ($http_host = "sofiabacasen.commons.msu.edu") {
610610
rewrite ^/(.*)$ https://sofiabacasen.hcommons.org/ permanent;
611-
}
611+
}

docs/user-content.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Accessing Content
44

5-
To work with user content, you need to import the WordPress database and uploads directory.
5+
To work with user content, you need to import the WordPress database and uploads directory.
66

77
The uploads directory can be accessed through AWS EFS via an NFS mount. You can do this by:
88

99
1. Ensure that your local machine can mount NFS v4 shares.
10-
2. Copy the `.lando.efs.yml` file to `.lando.yml` in the root of the project. This configuration should work for macOS, but may need to be adjusted for other OSes, depending on the NFS client being used. (See [NFS configuration](#NFS-Configuration) below.)
10+
2. Copy the `.lando.efs.yml` file to `.lando.yml` in the root of the project. This configuration should work for macOS, but may need to be adjusted for other OSes, depending on the NFS client being used. (See [NFS configuration](#nfs-configuration) below.)
1111
3. Connect to the Commons OpenVPN.
1212
4. Rebuild with `./lando-rebuild.sh`.
1313

@@ -23,16 +23,16 @@ For ubuntu, you may need to install the `nfs-common` package. You may also need
2323

2424
```yaml
2525
wp_uploads:
26-
driver: local
27-
driver_opts:
28-
type: nfs4
29-
o: addr=10.100.11.189,ro
30-
device: ":/"
26+
driver: local
27+
driver_opts:
28+
type: nfs4
29+
o: addr=10.100.11.189,ro
30+
device: ":/"
3131
```
3232
3333
## Logging in to the site
3434
3535
There are two login options for local development:
3636
3737
1) Login using the WordPress native login. When the site is up, run `lando reset-local-passwords` to reset all passwords to 'password'. You can then log in using the WordPress login form.
38-
2) Login using the dev IDMS stack. Once secrets have been imported using `scripts/get-local-secrets.php`, your local instance should be able to login using the dev IDMS stack, as you would from EC2-based dev instances. (Local enrollment flows do not yet exist, so you cannot register using this method.)
38+
2) Login using the dev IDMS stack. Once secrets have been imported using `scripts/get-local-secrets.php`, your local instance should be able to login using the dev IDMS stack, as you would from EC2-based dev instances. (Local enrollment flows do not yet exist, so you cannot register using this method.)

scripts/build-scripts/link-efs-themes-plugins.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
if [ -d "/content/plugins" ]; then
55
for plugin in /content/plugins/*/; do
66
if [ -d "$plugin" ]; then
7+
rm -rf /app/site/web/app/plugins/$plugin
78
ln -sf "$plugin" /app/site/web/app/plugins/
89
fi
910
done
@@ -13,6 +14,7 @@ fi
1314
if [ -d "/content/themes" ]; then
1415
for theme in /content/themes/*/; do
1516
if [ -d "$theme" ]; then
17+
rm -rf /app/site/web/app/themes/$theme
1618
ln -sf "$theme" /app/site/web/app/themes/
1719
fi
1820
done

themes/aupresses-jobs/functions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function aupresses_enqueue_styles() {
2929
function dm_display_wpjm_single_categories () {
3030
$terms = wp_get_post_terms( get_the_ID(), 'job_listing_category' );
3131
if ( ! empty( $terms ) && ! is_wp_error( $terms ) ){
32-
echo '<div class="job-categories-wrapper"><span>Catgeory:</span><ul>';
32+
echo '<div class="job-categories-wrapper"><span>Category:</span><ul>';
3333
foreach ( $terms as $term ) {
3434
echo '<li>' . $term->name . '</li>';
3535
}
@@ -51,6 +51,7 @@ function dm_display_wpjm_single_categories () {
5151
function custom_submit_job_form_fields_dm( $fields ) {
5252
unset($fields['company']['company_tagline']);
5353
unset($fields['company']['company_video']);
54+
unset($fields['company']['company_twitter']);
5455

5556
$fields['job']['application']['label'] = "URL or email for the 'Apply for job' button";
5657
$fields['job']['application']['description'] = "Defaults to your email address.";

0 commit comments

Comments
 (0)