My personal configuration files and scripts.
at master 18 lines 340 B view raw
1#!/usr/bin/env bash 2 3# Run a PHP script within the MySth container. 4 5set -e -o pipefail 6 7if [[ ! $# -eq 1 ]]; then 8 echo "usage: $(basename "$0") [FILE]" 9 exit 1 10fi 11 12cat - "$1" << EOF | docker exec -i -u mysth core_mysth_1 php -d xdebug.cli_color=2 13#!/usr/bin/php 14<?php 15require '../library/Bootstrap.php'; 16\Bootstrap::start(true); 17?> 18EOF