Skip to content

Instantly share code, notes, and snippets.

@JuanitoFatas
Created April 28, 2012 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save JuanitoFatas/2515997 to your computer and use it in GitHub Desktop.
Save JuanitoFatas/2515997 to your computer and use it in GitHub Desktop.
X项目配置
rvm gemset create rails-x
gem install rails -v 3.2.3
rails new x_weibo --skip-test-unit --skip-bundle
;;; Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem 'pg', '0.12.2'
gem 'bootstrap-sass', '2.0.2'
group :development, :test do
gem 'rspec-rails', '2.9.0'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.0'
group :test do
gem 'capybara', '1.1.2'
end
;;; database.yml
development:
adapter: postgresql
encoding: unicode
database: x_weibo_dev
pool: 5
username: Mac
password:
test:
adapter: postgresql
encoding: unicode
database: x_weibo_test
pool: 5
username: Mac
password:
production:
adapter: postgresql
encoding: unicode
database: x_weibo
pool: 5
username: Mac
password:
bundle install --binstubs --without production
rails generate rspec:install
;;; .gitignore
*.rbc
*.sassc
.sass-cache
capybara-*.html
.rspec
/.bundle
/vendor/bundle
/log/*
/tmp/*
/db/*.sqlite3
/public/system/*
/coverage/
/spec/tmp/*
**.orig
rerun.txt
pickle-email-*.html
doc/
*.swp
*~
.project
.DS_Store
bundler_stubs/
mv README.rdoc README.md
git init
git add .
git commit -m 'Init Commit'
git remote add origin git@github.com:<username>/your-repo-name.git
git push -u origin master
heroku create --stack cedar
git push heroku master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment