Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 22nd, 2013  |  syntax: None  |  size: 6.30 KB  |  views: 61  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Default: /usr/bin/ruby1.8
  2. -d, --database=name              Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite2/sqlite3/frontbase/ibm_db).
  3.                                  Default: sqlite3
  4. -D, --with-dispatchers           Add CGI/FastCGI/mod_ruby dispatches code to generated application skeleton
  5.                                  Default: false
  6.     --freeze                     Freeze Rails in vendor/rails from the gems generating the skeleton
  7.                                  Default: false
  8. -m, --template=path              Use an application template that lives at path (can be a filesystem path or URL).
  9.                                  Default: (none)
  10.        
  11. -v, --version                    Show the Rails version number and quit.
  12. -h, --help                       Show this help message and quit.
  13.        
  14. -p, --pretend                    Run but do not make any changes.
  15. -f, --force                      Overwrite files that already exist.
  16. -s, --skip                       Skip files that already exist.
  17. -q, --quiet                      Suppress normal output.
  18. -t, --backtrace                  Debugging: show backtrace on errors.
  19. -c, --svn                        Modify files with subversion. (Note: svn must be in path)
  20. -g, --git                        Modify files with git. (Note: git must be in path)
  21.        
  22. This generates a skeletal Rails installation in ~/Code/Ruby/weblog.
  23. See the README in the newly created application to get going.
  24.        
  25. create
  26.   create  app/controllers
  27.   create  app/helpers
  28.   create  app/models
  29.   create  app/views/layouts
  30.   create  config/environments
  31.   create  config/initializers
  32.   create  config/locales
  33.   create  db
  34.   create  doc
  35.   create  lib
  36.   create  lib/tasks
  37.   create  log
  38.   create  public/images
  39.   create  public/javascripts
  40.   create  public/stylesheets
  41.   create  script/performance
  42.   create  test/fixtures
  43.   create  test/functional
  44.   create  test/integration
  45.   create  test/performance
  46.   create  test/unit
  47.   create  vendor
  48.   create  vendor/plugins
  49.   create  tmp/sessions
  50.   create  tmp/sockets
  51.   create  tmp/cache
  52.   create  tmp/pids
  53.   create  Rakefile
  54.   create  README
  55.   create  app/controllers/application_controller.rb
  56.   create  app/helpers/application_helper.rb
  57.   create  config/database.yml
  58.   create  config/routes.rb
  59.   create  config/locales/en.yml
  60.   create  db/seeds.rb
  61.   create  config/initializers/backtrace_silencers.rb
  62.   create  config/initializers/inflections.rb
  63.   create  config/initializers/mime_types.rb
  64.   create  config/initializers/new_rails_defaults.rb
  65.   create  config/initializers/session_store.rb
  66.   create  config/environment.rb
  67.   create  config/boot.rb
  68.   create  config/environments/production.rb
  69.   create  config/environments/development.rb
  70.   create  config/environments/test.rb
  71.   create  script/about
  72.   create  script/console
  73.   create  script/dbconsole
  74.   create  script/destroy
  75.   create  script/generate
  76.   create  script/runner
  77.   create  script/server
  78.   create  script/plugin
  79.   create  script/performance/benchmarker
  80.   create  script/performance/profiler
  81.   create  test/test_helper.rb
  82.   create  test/performance/browsing_test.rb
  83.   create  public/404.html
  84.   create  public/422.html
  85.   create  public/500.html
  86.   create  public/index.html
  87.   create  public/favicon.ico
  88.   create  public/robots.txt
  89.   create  public/images/rails.png
  90.   create  public/javascripts/prototype.js
  91.   create  public/javascripts/effects.js
  92.   create  public/javascripts/dragdrop.js
  93.   create  public/javascripts/controls.js
  94.   create  public/javascripts/application.js
  95.   create  doc/README_FOR_APP
  96.   create  log/server.log
  97.   create  log/production.log
  98.   create  log/development.log
  99.   create  log/test.log
  100.        
  101. create
  102.   create  app/controllers
  103.   create  app/helpers
  104.   create  app/models
  105.   create  app/views/layouts
  106.   create  config/environments
  107.   create  config/initializers
  108.   create  config/locales
  109.   create  db
  110.   create  doc
  111.   create  lib
  112.   create  lib/tasks
  113.   create  log
  114.   create  public/images
  115.   create  public/javascripts
  116.   create  public/stylesheets
  117.   create  script/performance
  118.   create  test/fixtures
  119.   create  test/functional
  120.   create  test/integration
  121.   create  test/performance
  122.   create  test/unit
  123.   create  vendor
  124.   create  vendor/plugins
  125.   create  tmp/sessions
  126.   create  tmp/sockets
  127.   create  tmp/cache
  128.   create  tmp/pids
  129.   create  Rakefile
  130.   create  README
  131.   create  app/controllers/application_controller.rb
  132.   create  app/helpers/application_helper.rb
  133.   create  config/database.yml
  134.   create  config/routes.rb
  135.   create  config/locales/en.yml
  136.   create  db/seeds.rb
  137.   create  config/initializers/backtrace_silencers.rb
  138.   create  config/initializers/inflections.rb
  139.   create  config/initializers/mime_types.rb
  140.   create  config/initializers/new_rails_defaults.rb
  141.   create  config/initializers/session_store.rb
  142.   create  config/environment.rb
  143.   create  config/boot.rb
  144.   create  config/environments/production.rb
  145.   create  config/environments/development.rb
  146.   create  config/environments/test.rb
  147.   create  script/about
  148.   create  script/console
  149.   create  script/dbconsole
  150.   create  script/destroy
  151.   create  script/generate
  152.   create  script/runner
  153.   create  script/server
  154.   create  script/plugin
  155.   create  script/performance/benchmarker
  156.   create  script/performance/profiler
  157.   create  test/test_helper.rb
  158.   create  test/performance/browsing_test.rb
  159.   create  public/404.html
  160.   create  public/422.html
  161.   create  public/500.html
  162.   create  public/index.html
  163.   create  public/favicon.ico
  164.   create  public/robots.txt
  165.   create  public/images/rails.png
  166.   create  public/javascripts/prototype.js
  167.   create  public/javascripts/effects.js
  168.   create  public/javascripts/dragdrop.js
  169.   create  public/javascripts/controls.js
  170.   create  public/javascripts/application.js
  171.   create  doc/README_FOR_APP
  172.   create  log/server.log
  173.   create  log/production.log
  174.   create  log/development.log
  175.   create  log/test.log
  176.        
  177. gem -v
  178.  sudo gem install sqlite3-ruby rails # will install Rails 2.3.5 = latest stable release
  179.  rails app
  180.  cd app
  181.  rake db:create
  182.  script/server
  183.        
  184. wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.6.tgz
  185. tar xfz rubygems*tgz
  186. cd rubygems-*
  187. sudo ruby setup.rb && cd ..
  188. gem -v
  189. # if gem command fails
  190. sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
  191.  
  192. sudo gem install sqlite3-ruby bundler rails -pre
  193. # will install Rails 3.0.0beta3
  194. rails app
  195. cd app
  196. bundle install
  197. rake db:create
  198. rails server
  199.        
  200. ./script/server
  201.        
  202. rails server
  203.        
  204. bundle install
  205.        
  206. gem install bundler
  207. rails blog
  208. cd blog
  209. bundle install