Created
July 15, 2010 09:47
-
-
Save oliyoung/476732 to your computer and use it in GitHub Desktop.
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 README public/index.html public/favicon.ico public/robots.txt" | |
gem 'aws-s3', :lib => 'aws/s3' | |
gem 'geokit' | |
gem 'oauth' | |
gem 'factory_girl' | |
gem 'paperclip' | |
gem 'facebooker' | |
gem 'binarylogic-authlogic', :lib => 'authlogic', :source => 'http://gems.github.com' | |
#gem 'authlogic-oid', :lib => 'authlogic_openid', :source => 'http://gems.github.com' | |
#gem 'authlogic-oauth', :lib => "authlogic_oauth" | |
gem 'thoughtbot-shoulda', :lib => 'shoulda', :source => 'http://gems.github.com' | |
gem 'thoughtbot-factory_girl', :lib => 'factory_girl', :source => 'http://gems.github.com' | |
file '.gems', <<-CODE | |
rails -v 2.3.5 | |
thoughtbot-factory_girl --source http://gems.github.com | |
thoughtbot-shoulda --source http://gems.github.com | |
authlogic-oauth | |
authlogic-oid --source http://gems.github.com | |
binarylogic-authlogic --source http://gems.github.com | |
facebooker | |
paperclip | |
factory_girl | |
oauth | |
geokit | |
aws-s3 | |
CODE | |
plugin 'authlogic_facebook_connect', :git=>'git://github.com/kalasjocke/authlogic_facebook_connect.git' | |
rake "gems:install", :sudo => true | |
rake "gems:unpack" | |
rake "db:sessions:create" | |
initializer 'session_store.rb', <<-FILE | |
ActionController::Base.session = { :session_key => '_#{(1..6).map { |x| (65 + rand(26)).chr }.join}_session', :secret => '#{(1..40).map { |x| (65 + rand(26)).chr }.join}' } | |
ActionController::Base.session_store = :active_record_store | |
FILE | |
run "curl -sL http://jqueryjs.googlecode.com/files/jquery-1.2.6.min.js > public/javascripts/jquery.min.js" | |
run "curl -sL http://cdn.jquerytools.org/1.2.3/jquery.tools.min.js > public/javascripts/jquery.tools.min.js" | |
run "script/generate session user_session" | |
run "touch tmp/.gitignore log/.gitignore vendor/.gitignore" | |
run %{find . -type d -empty | grep -v "vendor" | grep -v ".git" | grep -v "tmp" | xargs -I xxx touch xxx/.gitignore} | |
file '.gitignore', <<-ENDEND | |
.DS_Store | |
log/*.log | |
tmp/**/* | |
config/database.yml | |
db/*.sqlite3 | |
ENDEND | |
git :init | |
git :add => "." | |
git :commit => "-m 'initial commit'" | |
run 'heroku create' | |
git :push=>"heroku master" | |
run 'heroku addons:add memcache:5mb' | |
run 'heroku addons:add exceptional:basic' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment