Sha256: 1a3c33fbada8315291dd07d8bca276c62d3b7063eabafb4351e53488da6b145c

Contents?: true

Size: 950 Bytes

Versions: 6

Compression:

Stored size: 950 Bytes

Contents

#/bin/bash
APPNAME=$1
echo "Creating Rails app: $1..."
echo "Working directory: `pwd`."
rails new $APPNAME
echo "Create $APPNAME/config/databse.yml..."
cat database.yml | sed "s/APPNAME/$APPNAME/g" > $APPNAME/config/database.yml
echo "Create Gemfile in $APPNAME..."
cp -v Gemfile $APPNAME
cd $APPNAME
echo "Working directory: `pwd`."
echo "Bundle install..."
bundle install
echo "Devise install..."
rails g devise:install
echo "Devise User model..."
rails g devise User
echo "Install ckeditor..."
rails g ckeditor:install
echo "Create config file in app/assets/javascripts/ckeditor/config.js"
mkdir app/assets/javascripts/ckeditor
cp ../config.js app/assets/javascripts/ckeditor
echo "Add remotipart to app/assets/javascripts/application.js..."
echo >> app/assets/javascripts/application.js
echo "//= require jquery.remotipart" >> app/assets/javascripts/application.js
echo >> app/assets/javascripts/application.js
echo "Done! Now make your tables."

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
inline_forms-1.0.18 lib/otherstuff/mk31-app
inline_forms-1.0.17 lib/otherstuff/mk31-app
inline_forms-1.0.16 lib/otherstuff/mk31-app
inline_forms-1.0.15 lib/otherstuff/mk31-app
inline_forms-1.0.14 lib/otherstuff/mk31-app
inline_forms-1.0.13 lib/otherstuff/mk31-app