matthew / ConfigProvider.php

0 likes
0 forks
4 files
Last active 3 weeks ago
An example of attaching a delegator factory to the Mezzio RouteCollectorInterface to automate route registration.
1 <?php
2
3 namespace SomeModule;
4
5 use Laminas\Stdlib\ArrayUtils\MergeRemoveKey;
6 use Mezzio\Router\RouteCollectorInterface;
7
8 class ConfigProvider
9 {
10 public function __invoke(): array

matthew / deploy.sh

0 likes
0 forks
1 files
Last active 1 year ago
This is a script I use on my host for deploying a website; it includes the ability to rollback if anything fails. I have my github action call this file with the repo name and sha in order to deploy a given site.
1 #!/bin/bash
2
3 set -e
4
5 deploy() {
6 local release_path="$1"
7
8 cd "${release_path}"
9 if [ -f "${release_path}/.deploy/deploy.sh" ]; then
10 /bin/bash .deploy/deploy.sh
Newer Older