forked from zkan/bugday_2013_rspec_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
Initial Project
roofimon edited this page Mar 29, 2013
·
6 revisions
เริมด้วยการติดตั้ง ruby ด้วยการใช้ RVM ตามเว็บนี้ https://rvm.io สำหรับผู้เริ่มต้นแนะนำให้ติดตั้งแบบ "single user installation" หลังจากติดตั้งเรียบร้อยสิ่งที่เราควรได้คือการสั่ง which ruby
rails new registration
rails generate rspec:install
gem install heroku
heroku create --stack cedar
git push heroku master
git push
git push heroku
source 'https://rubygems.org'
gem 'rails', '3.2.13'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.11.0'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.5'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
gem 'jquery-rails', '2.0.2'
group :test do
gem 'capybara', '1.1.2'
end
group :production do
gem 'pg', '0.12.2'
end
our Gemfile need sqlite and postgresql if you never installed them before you may face problem cannot "bundle" (or even "new") project.
sudo apt-get update
sudo apt-get install sqlite3
sudo apt-get install libsqlite3-dev
sudo apt-get install postgresql
sudo apt-get install libpq-dev
gem install bundler
bundle install