This file contains 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 | |
# Rename develop.sql to <version>.sql | |
# Exit if develop.sql is empty | |
if [ -s database/develop.sql ]; then exit 0; fi | |
# Get version tag from the latest commit | |
VER=`git tag --contains HEAD` |
This file contains 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 | |
// Load Joomla! config | |
if (!file_exists('httpdocs/configuration.php')) { | |
echo "Couldn't find configuration.php!\n"; | |
exit(); | |
} | |
include('httpdocs/configuration.php'); | |
$config = new JConfig(); |
This file contains 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 | |
# Apply stash to restore local develop.sql (or other changes) | |
git stash apply | |
git stash drop | |
# Which branch are we on? | |
branch=`git rev-parse --abbrev-ref HEAD` | |
php -f setup.php "$branch" |
This file contains 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 | |
cd ../ | |
unset GIT_DIR | |
read rev_old rev_new refname | |
if [[ "$refname" == *master* ]] | |
then | |
echo "Checking staging for modified/untracked files..." |
This file contains 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 | |
# Get the branch that was pushed | |
branch=$(git rev-parse --symbolic --abbrev-ref $1) | |
# Move to root of git repo | |
cd .. | |
unset GIT_DIR | |
# Save working directory for later |
This file contains 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 | |
# | |
# Usage: pushtotesting.sh <source> <destination> | |
# Summary: Pushes source site to destination testing site | |
# Description: Assuming the source site updates from the master branch, and | |
# the testing site the develop branch, this script will: | |
# | |
# 1. Fetch updates from the remote repo | |
# 2. Discard all local changes | |
# 3. Checkout and pull the develop branch |
This file contains 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/sh | |
# If checking out a branch | |
if [ $3 -eq 1 ]; then | |
# Get the new branch | |
branch=`git rev-parse --abbrev-ref HEAD` | |
# Run dev site setup | |
php -f setup.php "$branch" |
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="digitollsoftware" default="dist"> | |
<tstamp /> | |
<!-- Load local properties --> | |
<property file="./build.properties" override="true" /> | |
<!-- Get package version from the latest tag in git --> |
This file contains 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
# This is a template .gitignore file for git-managed WordPress projects. | |
# | |
# Fact: you don't want WordPress core files, or your server-specific | |
# configuration files etc., in your project's repository. You just don't. | |
# | |
# Solution: stick this file up your repository root (which it assumes is | |
# also the WordPress root directory) and add exceptions for any plugins, | |
# themes, and other directories that should be under version control. | |
# | |
# See the comments below for more info on how to add exceptions for your |
This file contains 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
'use strict' | |
data = ($injector) -> | |
init = -> | |
registerModels() | |
service = {} | |
registerModels = -> |
OlderNewer