Skip to content

Instantly share code, notes, and snippets.

@tell-k
Created July 29, 2011 16:26
Show Gist options
  • Save tell-k/1114170 to your computer and use it in GitHub Desktop.
Save tell-k/1114170 to your computer and use it in GitHub Desktop.
install lokka+heroku part1
#!/bin/sh
########################################
# easy install lokka on heroku for MacOS
#
# filename: herokka2.sh
#
# dependencies
# - heroku account
# - bash
# - git
# - yasashisa
#
# see also
# - http://lokka.org/
#
# author: tell-k
# url: http://d.hatena.ne.jp/tell-k/
########################################
#set appname
if [ $1 ]; then
APPNAME=$1
else
echo 'set heroku application name! ex) sh heroku_lokka_2.sh [application name]'
exit
fi
gem install heroku bundler
cd $APPNAME
heroku create $APPNAME
git push heroku master
heroku rake db:setup
heroku apps:open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment