Skip to content

Instantly share code, notes, and snippets.

@daveWid
Created January 19, 2012 16:01
Show Gist options
  • Save daveWid/1640764 to your computer and use it in GitHub Desktop.
Save daveWid/1640764 to your computer and use it in GitHub Desktop.
Setup Kohana 3.2 Application
#!/bin/bash
# Setup the git rep
git init
# Make the needed directories for the application
mkdir -p public/{css,images,js}
mkdir -p classes/{controller,model}
mkdir -p {config,views,cache,logs}
# Add in the default application files
curl -o public/index.php https://raw.github.com/kohana/kohana/3.2/master/index.php
curl -o public/.htaccess https://raw.github.com/kohana/kohana/3.2/master/example.htaccess
curl -o bootstrap.php https://raw.github.com/kohana/kohana/3.2/master/application/bootstrap.php
# Setup .gitignore files
echo ".DS_Store" > .gitignore
echo '[^.]*' > {logs,cache}/.gitignore
# Commit and we are done
git add .
git commit -m 'Initial Commit.'
# Send success message
echo "Kohana application ready: Stay Frosty!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment