This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
//package.json | |
//add new section for engines | |
"engines": { | |
"node": "^8.0.0", | |
"yarn": "^1.2.1" | |
}, | |
//add 2 new functions to scripts | |
"scripts": { |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.html [L] | |
</IfModule> |
<?php | |
// Manually create entries and send notifications with Gravity Forms | |
$form_id = 10; | |
// add entry | |
$entry = array( | |
"form_id" => $form_id, | |
"1" => "Entry for field ID 1", |
<div class="form-group"> | |
<div class="col-xs-7"> | |
<label for="postcode">Postcode</label> | |
<input type="text" name="postcode" placeholder="Postcode" ng-pattern="/^[a-z]{1,2}[0-9][a-z0-9]?\s?[0-9][a-z]{2}$/i" required ng-minlength="5" ng-maxlength="8" ng-model="complaint.postcode" ng-change="formatPostcode()" class="form-control" /> | |
<div class="col-xs-12" ng-messages="reclaim.postcode.$error" ng-if="reclaim.$submitted || reclaim.postcode.$dirty"> | |
<div class="text-warning" ng-message="minlength">Postcode is too short.</div> | |
<div class="text-warning" ng-message="pattern">Postcode is not in the correct format.</div> | |
<div class="text-warning" ng-message="maxlength">Postcode is too long.</div> | |
</div> | |
</div> |