Get A Sticker
Step 1: Have a volunteer check your tool versions
Verify tool installation
If you're on OSX or Linux:
Type this in the terminal:rvm -vApproximate expected result:rvm 1.x.x by Wayne E. Seguin (wayneeseguin@gmail.com) [https://rvm.io/]
The greyed-out text may differ and is not important.On all operating systems:
Type this in the terminal:ruby -vApproximate expected result:ruby 1.9.3p125 (2022-02-16 revision 34643) [x86_64-darwin11.3.0]
The greyed-out text may differ and is not important.Type this in the terminal:bundle -vApproximate expected result:Bundler version 1.x.x
The greyed-out text may differ and is not important.Type this in the terminal:rails -vApproximate expected result:Rails 4.0.x
The greyed-out text may differ and is not important.
Verify git
Type this in the terminal:git initExpected result:Initialized empty Git repository in /home/steven/Code/ruby/sticker/.git/Type this in the terminal:git add -AType this in the terminal:git statusExpected result:# On branch master # # Initial commit # # Changes to be committed: # (use "git rm --cached <file>..." to unstage) # # new file: .gitignore # new file: Gemfile # new file: Gemfile.lock # new file: README.rdoc # new file: Rakefile # ...most output omitted for brevity...Type this in the terminal:git commit -m "Getting that sticker"Expected result:[master (root-commit) 8cd0e44] Getting that sticker 54 files changed, 1531 insertions(+) create mode 100644 .gitignore # ...most output omitted for brevity... create mode 100644 test/unit/helpers/drinks_helper_test.rb create mode 100644 vendor/assets/javascripts/.gitkeep create mode 100644 vendor/assets/stylesheets/.gitkeep create mode 100644 vendor/plugins/.gitkeepType this in the terminal:git statusExpected result:# On branch master nothing to commit (working directory clean)
Verify heroku deploy
gem 'sqlite3'
group :development, :test do gem 'sqlite3' end group :production do gem 'pg' gem 'rails_12factor' endType this in the terminal:bundle install --without productionExpected result:Fetching gem metadata from https://rubygems.org/......... # ...most output omitted for brevity... Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.Type this in the terminal:git add -A git commit -m "Add pg gem for Heroku."Expected result:[master 4a275be] Add pg gem for Heroku. 2 files changed, 6 insertions(+)Type this in the terminal:heroku createExpected result:Creating evening-wind-5284... done, stack is cedar http://evening-wind-5284.heroku.com/ | git@heroku.com:evening-wind-5284.git Git remote heroku addedType this in the terminal:git push heroku masterExpected result:Counting objects: 7, done. Delta compression using up to 2 threads. Compressing objects: 100% (4/4), done. Writing objects: 100% (4/4), 453 bytes, done. Total 4 (delta 3), reused 0 (delta 0) -----> Heroku receiving push -----> Ruby/Rails app detected -----> Detected Rails is not set to serve static_assets Installing rails3_serve_static_assets... done -----> Configure Rails 3 to disable x-sendfile Installing rails3_disable_x_sendfile... done -----> Configure Rails to log to stdout Installing rails_log_stdout... done -----> Gemfile detected, running Bundler version 1.0.7 Unresolved dependencies detected; Installing... Using --without development:test # ...most output omitted for brevity... -----> Compiled slug size is 6.1MB -----> Launching...Type this in the terminal:heroku run rake db:migrateExpected result:Migrating to CreateDrinks (20120428044153) == CreateDrinks: migrating =================================================== -- create_table(:drinks) -> 0.0084s == CreateDrinks: migrated (0.0085s) ==========================================Type this in the terminal:heroku openExpected result:Opening http://evening-wind-5284.heroku.com/
Step 2: Congratulations!
Next Step:
Go on to Clean Up
Back to Create And Deploy A Rails App