Skip to content

Instantly share code, notes, and snippets.

@jasonsnider
Created December 5, 2013 14:41
Show Gist options
  • Save jasonsnider/7806134 to your computer and use it in GitHub Desktop.
Save jasonsnider/7806134 to your computer and use it in GitHub Desktop.
The default script for The Parbake Project
#!/bin/sh
# Rebuilds The Parbake Project from it's git repositories
# Jason D Snider <jason@jasonsnider.com>
# Configure the build script
PROJECT_PATH="/var/www/parbake.org"
APACHE_PROCESS="www-data"
USER="jsnider"
GIT_ACCESS="git@github.com:"
## Start by removing the entire website
rm -fR "$PROJECT_PATH"/app
## Build the code base
### Install the Tinker code base
cd "$PROJECT_PATH" && git clone "$GIT_ACCESS"parbake/parbake.git app
### Install the Config directory
cd "$PROJECT_PATH"/app/ && git clone "$GIT_ACCESS"parbake/Config.git Config
### Install the plugins
cd "$PROJECT_PATH"/app/Plugin/ && git clone "$GIT_ACCESS"parbake/Contents-plugin.git Contents
cd "$PROJECT_PATH"/app/Plugin/ && git clone "$GIT_ACCESS"parbake/Users-plugin.git Users
cd "$PROJECT_PATH"/app/Plugin/ && git clone "$GIT_ACCESS"parbake/Utilities-plugin.git Utilities
cd "$PROJECT_PATH"/app/Plugin/ && git clone "$GIT_ACCESS"jasonsnider/CakePHP-Audit-Log-Plugin.git AuditLog
### Install the themes
# cd "$PROJECT_PATH"/app/View/Themed/ && git clone "$GIT_ACCESS"some-repo/some-theme.git SomeTheme
### Install the vendor libraries
cd /var/www/parbake.org/app/Vendor/ && git clone git://repo.or.cz/htmlpurifier.git HtmlPurifier
sudo chown "$APACHE_PROCESS":"$USER" -fR "$PROJECT_PATH"/lib/Cake/Cache -fR
sudo chown "$APACHE_PROCESS":"$USER" -fR "$PROJECT_PATH"/app/tmp -fR
sudo chown "$APACHE_PROCESS":"$USER" -fR "$PROJECT_PATH"/app/Vendor/HtmlPurifier/library/HTMLPurifier/DefinitionCache/Serializer -fR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment