Created
June 15, 2013 10:52
-
-
Save i-arindam/5787739 to your computer and use it in GitHub Desktop.
rails app setup steps
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
development: | |
adapter: mysql | |
encoding: utf8 | |
database: <dev db name> | |
username: root | |
password: root123 | |
host: localhost | |
port: 3306 | |
socket: /tmp/mysql.sock | |
test: | |
adapter: mysql | |
encoding: utf8 | |
database: <test db name> | |
username: root | |
password: root123 | |
host: localhost | |
port: 3306 | |
socket: /tmp/mysql.sock | |
# Add sections like production as and when required |
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
source 'https://rubygems.org' | |
source 'http://gems.github.com' | |
gem "bcrypt-ruby", :require => "bcrypt" | |
gem "cached_model", '1.3.1' | |
gem "capistrano", '2.15.4' | |
gem "daemons", '1.1.9' | |
gem 'debugger', '1.6.0' | |
gem 'delayed_job_active_record', '0.4.4' | |
gem 'hiredis', '0.4.5' | |
gem "json", '1.8.0' | |
gem "jquery-rails", '2.2.1' | |
gem "mysql", '2.8.1' | |
gem 'newrelic_rpm', '3.6.2.96' | |
gem 'rails', '3.2.13' | |
gem "rails_autolink", "1.1.0" | |
gem 'rake', '10.0.4' | |
gem 'redis', '3.0.4' | |
gem "right_aws", '3.0.5' | |
gem "rmagick", '2.13.2' | |
gem "rsolr", '1.0.9' | |
gem 'rvm-capistrano', '1.3.0' | |
gem 'sass-rails', '3.2.3' | |
gem "unicorn", '4.6.2' | |
group :development, :test do | |
gem "annotate", '2.5.0' | |
gem "better_errors", '0.8.0' | |
gem "capybara", '2.1.0' | |
gem "parallel", '0.6.5' | |
gem "quiet_assets", '1.0.2' | |
gem "rspec", '2.13.0' | |
gem "rspec-rails", '2.13.2' | |
gem "thin", '1.5.1' | |
end | |
group :production do | |
gem 'therubyracer', '0.11.4' | |
gem "yui-compressor", '0.9.6' | |
gem "ZenTest", '4.8.2' | |
end | |
group :assets do | |
gem 'coffee-rails', '~> 3.2.1' | |
gem 'sass-rails', '3.2.3' | |
end |
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
## Steps | |
- Use rvm (http://rvm.io) | |
- Create ruby (latest) and gemset (for separate rails) | |
- Use respective ruby and gemset | |
- install latest rails, as of now, 3.2.13 | |
- create new DB in mysql ( assuming its installed ), name it <dev DB name> | |
- `rails new app_name` | |
- change database.yml to attached file | |
- change gemfile to attached file | |
- run `bundle install` | |
- once complete (there might be platform specific errors for few gems), `rails s` | |
- verify default index page comes | |
- `rm public/index.html` | |
- `rails s` should give route error | |
- all set. make this initial commit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment