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
<VirtualHost *:443> | |
ServerAdmin webmaster@localhost | |
ServerName www.example.com | |
ServerAlias example.com www.example.org example.org | |
DocumentRoot /var/www/example | |
# Canonical name is important otherwise SERVER_NAME will always equals HTTP_HOST | |
UseCanonicalName On | |
RewriteEngine On | |
RewriteCond "%{SERVER_NAME} %{HTTP_HOST}" "!(^[^ ]*) \1" [NC] |
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
# !/bin/bash | |
# Install CURL | |
sudo apt-get install -y curl | |
## ADD ADDITIONAL PACKAGES SOURCES ## | |
# Support for Multiple PHP version | |
sudo add-apt-repository -y ppa:ondrej/php |
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 | |
namespace SmartCookie\GraphQL; | |
use GraphQL\Type\Definition\ResolveInfo; | |
use GraphQL\Type\Definition\Type; | |
use SilverStripe\GraphQL\Manager; | |
use SilverStripe\GraphQL\OperationResolver; | |
use SilverStripe\GraphQL\QueryCreator; | |
use SilverStripe\ORM\DataObject; | |
use SilverStripe\GraphQL\Scaffolding\Util\ScaffoldingUtil; |
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
#!/bin/bash | |
############################################################################### | |
# This is a simple convenience script to switch between PHP 5 and PHP 7 on | |
# UBUNTU both for the CLI and APACHE. | |
# | |
# Just call the script with the first argument set to `apache` or `cli`. The | |
# script will try to dectect if you are currently using PHP 5.6 or PHP 7.1 | |
# and switch to the other version. | |
# |
NewerOlder