Skip to content

vijitsingh/learning-ruby-sample-rails-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby on Rails Tutorial : hello world

Ruby on Rails tutorial

Commands ran to build this application :

  • cd to workspace
  • rails new hello_app
  • update Gemfile to use a fixed version for package just as an exercise
  • cd to hello_app
  • run the command : bundle install
  • run command : rails server # server starts running at 3000. localhost:3000
  • update app/controller/application_controller.rb to add a hello def
  • update config/routes.rb with root "application#hello"
  • rails server

-- to add to git

  • git init
  • git add -A
  • git commit -m ""
  • git log # to see previous commit messages
  • git push origin master # pushed the changes to github

-- to modify README.md by creating branch

  • git branch -b modify-README
  • git mv README.rdoc README.md
  • modify README.md
  • git checkout master
  • git merge modify-README

-- pushing to heroku

  • modify Gemfile to add pg module and a heroku specific module for rails
  • bundle install --without production
  • update Gemfile to github
  • heroku version # to make sure heroku is installed
  • heroku login
  • heroku keys:add #to make sure keys are added. not required again
  • heroku create # to create a new project area inside heroku
  • git push heroku master
  • deployed here : https://powerful-crag-4952.herokuapp.com/

-- DONE.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published