Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
lukemorton committed Apr 12, 2011
0 parents commit 0fcd576
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions newapp.sh
@@ -0,0 +1,34 @@
# Grab the Vitals.
#
# You will need installed:
#
# * git
# * apache ( + mod_php )
#

if [$APP_PATH == ""]
then
# Use default application path
APP_PATH = /var/www/
fi

# Request application name
echo "Please provide a name for your app (used as folder name under /var/www/): "
read APP_NAME

# Create folder in application path and change into it
mkdir -p $APP_PATH/$APP_NAME/
cd $APP_PATH/$APP_NAME/

# Create application folders with correct perms
mkdir {application,modules}
mkdir application/{classes,templates,public,cache,logs}
chmod 0777 application/cache application/logs

# Get system files
git submodule add https://github.com/kohana/core.git system

# Init repo
git init
git add .
git commit -m "My base Kohana setup for $APP_NAME"

0 comments on commit 0fcd576

Please sign in to comment.