if [ -d "releases/${execution.to_revision.revision}" ] && [ "${execution.refresh}" = "true" ]; then echo "Removing: releases/${execution.to_revision.revision}" && rm -rf releases/${execution.to_revision.revision}; fi
if [ ! -d "releases/${execution.to_revision.revision}" ]; then echo "Creating: releases/${execution.to_revision.revision}" && cp -dR deploy-cache releases/${execution.to_revision.revision}; fi
echo "Creating: persistence directories"
mkdir -p storage/craft
mkdir -p storage/cpresources
mkdir -p storage/uploads
This file contains hidden or 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
| <?php | |
| // In general.php define an alias: | |
| 'aliases' => [ | |
| '@baseUrl' => getenv('CRAFTENV_BASE_URL') | |
| ], | |
| // In the CP, set the Base URL for each site to @baseUrl/ | |
| // When previewing, the CP will therefore always use the hostname the editor logged into as the base url for the preview | |
| // (that happens with 'new' entries anyway regardless of base url, but existing entries use base url). |
This file contains hidden or 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
| {% set _inline_css_block = block('_inline_css') %} | |
| {% if _inline_css_block is not empty %} | |
| <script> | |
| (function() { | |
| /*! loadCSS. [c]2017 Filament Group, Inc. MIT License */ | |
| !function(e){"use strict";var n=function(n,t,o){function i(e){return a.body?e():void setTimeout(function(){i(e)})}function r(){l.addEventListener&&l.removeEventListener("load",r),l.media=o||"all"}var d,a=e.document,l=a.createElement("link");if(t)d=t;else{var s=(a.body||a.getElementsByTagName("head")[0]).childNodes;d=s[s.length-1]}var f=a.styleSheets;l.rel="stylesheet",l.href=n,l.media="only x",i(function(){d.parentNode.insertBefore(l,t?d:d.nextSibling)});var u=function(e){for(var n=l.href,t=f.length;t--;)if(f[t].href===n)return e();setTimeout(function(){u(e)})};return l.addEventListener&&l.addEventListener("load",r),l.onloadcssdefined=u,u(r),l};"undefined"!=typeof exports?exports.loadCSS=n:e.loadCSS=n}("undefined"!=typeof global?global:this); | |
| !function(t){"use strict";t.loadCSS||(t.loadCSS=function(){});var e=loadCSS.relpreload={ |
This file contains hidden or 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
| Allow shipping rules to accept regex | |
| *************************************************************** | |
| First, change the `postcode` column in `exp_store_shipping_rules` to type varchar(255). | |
| ./Store/src/Service/ShippingService.php | |
| Change this: | |
| /** |
This file contains hidden or 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
| Allow shipping rules to accept regex | |
| *************************************************************** | |
| First, change the `postcode` column in `exp_store_shipping_rules` to type varchar(255). | |
| ./Store/src/Service/ShippingService.php | |
| Change this: | |
| /** |
This file contains hidden or 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
| {# _partials/blocks/blocks.html #} | |
| {# | |
| Blocks component | |
| Outputs a matrix field blocks, intelligently wrapping blocks that need to be inset from the edges | |
| @param {object} contentBlocks (MatrixBlockModel) | |
| #} | |
| {# Parameters #} |
These images are being sourced from https://hallmark-design.co.uk, which I have added as a "web folder" source in imgix. Please try it out with your own domain rather than use up my bandwidth :).
<!DOCTYPE html>
<html>
<head>
<title>Test Imgix</title>
<!-- imgix config -->
-
In Tagadab cloud control panel create new server running Ubuntu 14.04.2 minimal, with backups enabled.
-
Change Tools > Bootloader to server so it can load it's own kernel modules.
-
Take snapshot (pre-upgrade-os).
-
We need to update to Ubuntu 14.04.4 first. Login as root and run:
sudo apt update
sudo apt dist-upgrade
#GeeUp workshop
These instructions will help you set up the EE Zen Garden locally and you should end up with a working website.
-
Fork croxton/ee_zen_garden on Github
-
Make a local clone of your fork:
git clone [email protected]:my-account/ee_zen_garden.git
