This is project to maintain stuffs in home including books, clothes etc.
-
rails g model User name:string email:string password_digest:string remember_digest:string –force
-
rake db:migrate
rails server
-
rails new blog
-
rake routes
-
rails g controller articles: rails g controller users(controller name) new(action name)
-
rails g model articles
-
bundle install: install listed gem in Gemfile
rails console
Example: User.create(name: “Michael Hartl”, email: “[email protected]”,password: “foobar”, password_confirmation: “foobar”)
immense-earth-27752.herokuapp.com/
Run in Heroku:
-
heroku version
-
heroku login
-
heroku keys:add
-
heroku create
-
git push heroku master
Heroku commands:
-
heroku run rake db:migrate
-
heroku run bash
-
heroku ps:scale web=1
-
heroku ps
-
heroku open
-
heroku logs –tail
-
heroku run rails console
Please feel free to use a different markup language if you do not plan to run rake doc:app
.