Created
November 18, 2010 10:42
-
-
Save rwz/704848 to your computer and use it in GitHub Desktop.
rails template
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
run 'rm public/index.html' | |
run 'rm public/favicon.ico' | |
run 'rm public/images/rails.png' | |
# remove Prototype defaults | |
run 'rm public/javascripts/controls.js' | |
run 'rm public/javascripts/dragdrop.js' | |
run 'rm public/javascripts/effects.js' | |
run 'rm public/javascripts/prototype.js' | |
# adding mootools | |
run 'curl -L https://ajax.googleapis.com/ajax/libs/mootools/1.3/mootools.js > public/javascripts/mootools-core.js' | |
gem 'russian' | |
gem 'haml' | |
gem 'compass' | |
# compass | |
file 'config/compass.rb', <<-CODE | |
# This configuration file works with both the Compass command line tool and within Rails. | |
# Require any additional compass plugins here. | |
project_type = :rails | |
project_path = Compass::AppIntegration::Rails.root | |
# Set this to the root of your project when deployed: | |
http_path = "/" | |
css_dir = "public/stylesheets/compiled" | |
sass_dir = "app/stylesheets" | |
environment = Compass::AppIntegration::Rails.env | |
# To enable relative paths to assets via compass helper functions. Uncomment: | |
# relative_assets = true | |
CODE | |
file 'config/initializers/compass.rb', <<-CODE | |
require 'compass' | |
require 'compass/app_integration/rails' | |
Compass::AppIntegration::Rails.initialize! | |
CODE | |
run 'rm .gitignore' | |
file '.gitignore', <<-FILE | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
FILE | |
git :init | |
git :submodule => "init" | |
git :add => '.' | |
git :commit => "-a -m 'Initial commit'" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment