-
Notifications
You must be signed in to change notification settings - Fork 0
Lesson Notes
To bundle install without production gems, type the following into Terminal:
bundle install --without production
The reason why you don't see any of the images that you uploaded a while ago to Heroku is because Heroku automatically deletes any images or files on their servers that users have uploaded. Heroku is for hosting your web application, NOT for storing images or other assets.
You can check all your Heroku config variables by typing the following in Terminal:
heroku config
References:
- Heroku: Uploading Files to S3 in Ruby with Paperclip
- Configuration and Config Vars | Heroku Dev Center
The command for generating a migration is:
rails generate migration [NameOfYourMigration] [optional attributes]
Example from the lesson: rails generate migration AddImageRemoteUrlToPins image_remote_url:string
Don't forget to run rake db:migrate
to update your database after generating the migration. You will need to do that on Heroku as well by typing heroku run rake db:migrate
after pushing your changes to Heroku.
The Faker Ruby Gem allows you to populate fake data into your databases.
References:
To view all tasks related to the database, type the following in Terminal:
rake --tasks
The will_paginate Gem is a pagination library for Rails 3, Sinatra, Merb, DataMapper, and more.
References: