Skip to content

Instantly share code, notes, and snippets.

@bash0C7
Created June 2, 2012 06:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bash0C7/2856887 to your computer and use it in GitHub Desktop.
Save bash0C7/2856887 to your computer and use it in GitHub Desktop.
install padrino and run padrino generate project
#!/bin/bash
if [ $# -ne 2 ]; then
echo "引数1にpadrinoプロジェクト名を入れて下さい" 1>&2
echo "引数2にpadrinoコアアプリケーション名を入れて下さい" 1>&2
exit 1
fi
cat << EOS > Gemfile
source "http://rubygems.org"
gem "padrino"
EOS
bundle install --path vendor/bundle
mkdir $1
git init $1
bundle exec padrino g project $1 --app $2 -d activerecord -t rspec -s jquery -e erb -m rr
rm -f Gemfile
rm -f Gemfile.lock
rm -rf .bundle
rm -rf vendor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment