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
# Copyright (C) 2018 Dineshkarthik Raveendran | |
from __future__ import print_function # Python 2/3 compatibility | |
import boto3 | |
import argparse | |
def replicate(table_name, existing_region, new_region, new_table_name): | |
""" | |
Replicate table in new region. |
var http = require('http'); | |
var router = require('routes')(); | |
var Busboy = require('busboy'); | |
var AWS = require('aws-sdk'); | |
var inspect = require('util').inspect; | |
var port = 5000; | |
// Define s3-upload-stream with S3 credentials. | |
var s3Stream = require('s3-upload-stream')(new AWS.S3({ | |
accessKeyId: '', |
Dockerfile
that is based on your production image and
simply install xdebug
into it. Exemple:FROM php:5
RUN yes | pecl install xdebug \
&& echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
git ls-files | grep '\.swp$' | xargs git rm |
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "Specify old branch" | |
fi | |
if [ -z "$2" ] | |
then | |
echo "Specify new branch" |