What this will cover
- Host a static website at S3
- Redirect
www.website.com
towebsite.com
- Website can be an SPA (requiring all requests to return
index.html
) - Free AWS SSL certs
- Deployment with CDN invalidation
<!doctype html> | |
<html lang="en"> | |
<body> | |
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-app.js"></script> | |
<script src="https://www.gstatic.com/firebasejs/6.0.4/firebase-database.js"></script> | |
<script> | |
// TODO: Replace the following with your app's Firebase project configuration | |
var firebaseConfig = { |
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; | |
// Check to see if History.js is enabled for our Browser |
// https://gist.github.com/854622 | |
(function(window,undefined){ | |
// Prepare our Variables | |
var | |
History = window.History, | |
$ = window.jQuery, | |
document = window.document; | |
// Check to see if History.js is enabled for our Browser |
$.fn.dataTableExt.oPagination.listbox = { | |
/* | |
* Function: oPagination.listbox.fnInit | |
* Purpose: Initalise dom elements required for pagination with listbox input | |
* Returns: - | |
* Inputs: object:oSettings - dataTables settings object | |
* node:nPaging - the DIV which contains this pagination control | |
* function:fnCallbackDraw - draw function which must be called on update | |
*/ | |
"fnInit": function (oSettings, nPaging, fnCallbackDraw) { |
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Deploy extends Front_Controller | |
{ | |
protected $file_name = ''; | |
protected $_path = ''; | |
/** | |
* Constructor |