Created
January 19, 2012 16:01
-
-
Save daveWid/1640764 to your computer and use it in GitHub Desktop.
Setup Kohana 3.2 Application
This file contains hidden or 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 | |
# 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