-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from frees-au/feature/styling
Feature/styling
- Loading branch information
Showing
243 changed files
with
4,913 additions
and
3,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
ddev npm --prefix web/themes/custom/fstheme ci | ||
ddev npm --prefix web/themes/custom/fstheme run build | ||
ddev npm --prefix web/themes/custom/fstheme run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#!/bin/bash | ||
|
||
#drush search-api:clear article | ||
#drush search-api:index article | ||
|
||
rm -rf /var/www/html/static-site | ||
|
||
GENERATE_STATIC_SITE=1 drush tome:static -vv --uri=https://frees.au | ||
if [ "$1" == "--production" ]; then | ||
GENERATE_STATIC_SITE=1 drush tome:static -vv --uri=https://frees.au | ||
else | ||
GENERATE_STATIC_SITE=1 drush tome:static -vv --uri=fs-web-static-site.ddev.site:8080 | ||
fi | ||
|
||
# Need this one to make search api lunr works. | ||
# Make sure Drupal site is fully index first. | ||
cp -R "/var/www/html/web/sites/default/files/search-api-js" "/var/www/html/static-site/sites/default/files" | ||
#cp -R "/var/www/html/web/sites/default/files/search-api-js" "/var/www/html/static-site/sites/default/files" | ||
cp -R "/var/www/html/web/themes/custom/fstheme/stockart" "/var/www/html/static-site/themes/custom/fstheme" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
# Example configuration for a second docroot | ||
|
||
#ddev-generated | ||
# If you want to take over this file and customize it, rename it to <yourname>.conf, | ||
# and remove the ddev-generated line above | ||
|
||
server { | ||
# Set the docroot to where it belongs in the codebase | ||
root /var/www/html/static-site; | ||
# Set the server_name so this config can be selected | ||
# You'll need additional_hostnames["seconddocroot"] in config.yaml for this to work | ||
server_name fs-web-static-site.ddev.site; | ||
|
||
listen 80; | ||
listen 443 ssl; | ||
|
||
ssl_certificate /etc/ssl/certs/master.crt; | ||
ssl_certificate_key /etc/ssl/certs/master.key; | ||
|
||
include /etc/nginx/monitoring.conf; | ||
|
||
index index.php index.htm index.html; | ||
|
||
# Disable sendfile as per https://docs.vagrantup.com/v2/synced-folders/virtualbox.html | ||
sendfile off; | ||
error_log /dev/stdout info; | ||
access_log /var/log/nginx/access.log; | ||
|
||
location / { | ||
absolute_redirect off; | ||
try_files $uri $uri/ /index.php?$query_string; | ||
} | ||
|
||
location @rewrite { | ||
# For D7 and above: | ||
# Clean URLs are handled in drupal_environment_initialize(). | ||
rewrite ^ /index.php; | ||
} | ||
|
||
# pass the PHP scripts to FastCGI server listening on socket | ||
location ~ \.php$ { | ||
try_files $uri =404; | ||
fastcgi_split_path_info ^(.+\.php)(/.+)$; | ||
fastcgi_pass unix:/run/php-fpm.sock; | ||
fastcgi_buffers 16 16k; | ||
fastcgi_buffer_size 32k; | ||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; | ||
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | ||
fastcgi_index index.php; | ||
include fastcgi_params; | ||
fastcgi_intercept_errors off; | ||
# fastcgi_read_timeout should match max_execution_time in php.ini | ||
fastcgi_read_timeout 10m; | ||
fastcgi_param SERVER_NAME $host; | ||
fastcgi_param HTTPS $fcgi_https; | ||
# Pass the X-Accel-* headers to facilitate testing. | ||
fastcgi_pass_header "X-Accel-Buffering"; | ||
fastcgi_pass_header "X-Accel-Charset"; | ||
fastcgi_pass_header "X-Accel-Expires"; | ||
fastcgi_pass_header "X-Accel-Limit-Rate"; | ||
fastcgi_pass_header "X-Accel-Redirect"; | ||
} | ||
|
||
# Expire rules for static content | ||
# Media: images, icons, video, audio, HTC | ||
location ~* \.(?:jpg|jpeg|gif|png|ico|cur|gz|svg|svgz|mp4|ogg|ogv|webm|webp|htc)$ { | ||
expires 1M; | ||
access_log off; | ||
add_header Cache-Control "public"; | ||
} | ||
|
||
# Prevent clients from accessing hidden files (starting with a dot) | ||
# This is particularly important if you store .htpasswd files in the site hierarchy | ||
# Access to `/.well-known/` is allowed. | ||
# https://www.mnot.net/blog/2010/04/07/well-known | ||
# https://tools.ietf.org/html/rfc5785 | ||
location ~* /\.(?!well-known\/) { | ||
deny all; | ||
} | ||
|
||
# Prevent clients from accessing to backup/config/source files | ||
location ~* (?:\.(?:bak|conf|dist|fla|in[ci]|log|psd|sh|sql|sw[op])|~)$ { | ||
deny all; | ||
} | ||
|
||
include /etc/nginx/common.d/*.conf; | ||
include /mnt/ddev_config/nginx/*.conf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.