hibiken / stories

Medium clone built with Ruby on Rails
https://my-medium-clone.herokuapp.com/
MIT License
806 stars 270 forks source link

Changing to Producton #30

Open milezzz opened 8 years ago

milezzz commented 8 years ago

Excuse me guys I have limited experience with RoR so this will be basic stuff.

I finally managed to get Stories running in production mode with:

RAILS_ENV=production bundle exec rake assets:precompile

I ran into a few errors but it was a matter of setting proper options in /config.

I then run my app with:

rails server -e production

My question is that most of the images (posts featured images and user avatars) are now linked to S3. I was wondering how do I properly configure this AND do I need to run a special command to copy all images to the S3 server?

I should have some improvements to contribute soon. Thanks!

milezzz commented 8 years ago

This can be closed. Settings for S3 are in config/environments/production.rb

Seems to work great...unbelievably fast with S3!