Created
June 2, 2012 06:02
-
-
Save bash0C7/2856887 to your computer and use it in GitHub Desktop.
install padrino and run padrino generate project
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 | |
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