Skip to content

Instantly share code, notes, and snippets.

View ac00perw's full-sized avatar

Adam Cooper Wood ac00perw

View GitHub Profile
@ac00perw
ac00perw / gist:078b8af9c85ca96e5ee4129c400c66c2
Last active August 28, 2018 14:28
Envoy deployer (rsync set to dry run & Wordpress excludes)
@servers(['local' => ['127.0.0.1'], 'production' => ['admin@domain.com']])
@setup
$vars=[
'localdir' => '',
'remote' => "",
'remotedir' => "",
'rsyncflags' => "-n --exclude 'Envoy*' --exclude '.git' --exclude '.gitignore' --exclude 'wp-config.php' --exclude 'wp-content' --exclude 'wp-config.php'",
];
$count = 0;
<?php
namespace App\Http\Controllers;
use Spatie\Activitylog\Models\Activity;
use Illuminate\Support\Facades\DB;
use Illuminate\Cookie\CookieJar;
use Illuminate\Http\Request;
use App\FilmType;
use App\Subject;