@@ -19,9 +19,7 @@ class AvatarUploader < CarrierWave::Uploader::Base |
||
| 19 | 19 |
|
| 20 | 20 |
if Rails.env.production? |
| 21 | 21 |
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
| 22 |
- include Sprockets::Rails::Helper |
|
| 23 |
- include Sprockets::Helpers::RailsHelper |
|
| 24 |
- include Sprockets::Helpers::IsolatedHelper |
|
| 22 |
+ include Sprockets::Rails::Helper |
|
| 25 | 23 |
storage :fog |
| 26 | 24 |
end |
| 27 | 25 |
|
@@ -19,9 +19,7 @@ class CoverUploader < CarrierWave::Uploader::Base |
||
| 19 | 19 |
|
| 20 | 20 |
if Rails.env.production? |
| 21 | 21 |
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
| 22 |
- include Sprockets::Rails::Helper |
|
| 23 |
- include Sprockets::Helpers::RailsHelper |
|
| 24 |
- include Sprockets::Helpers::IsolatedHelper |
|
| 22 |
+ include Sprockets::Rails::Helper |
|
| 25 | 23 |
storage :fog |
| 26 | 24 |
end |
| 27 | 25 |
|
@@ -18,9 +18,7 @@ class FileUploader < CarrierWave::Uploader::Base |
||
| 18 | 18 |
|
| 19 | 19 |
if Rails.env.production? |
| 20 | 20 |
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: |
| 21 |
- include Sprockets::Helpers::RailsHelper |
|
| 22 |
- include Sprockets::Rails::Helper |
|
| 23 |
- include Sprockets::Helpers::IsolatedHelper |
|
| 21 |
+ include Sprockets::Helpers::RailsHelper |
|
| 24 | 22 |
storage :fog |
| 25 | 23 |
end |
| 26 | 24 |
|
@@ -26,9 +26,11 @@ A template for creating rails websites that includes the following: |
||
| 26 | 26 |
## Heroku Deploy |
| 27 | 27 |
|
| 28 | 28 |
1. Create a new heroku app: ```heroku create new-app-name``` |
| 29 |
-2. Run ```figaro heroku:set -e production``` to set enviorment variables on heroku |
|
| 30 |
-3. Run ```heroku addons:add heroku-postgresql``` to create and configure a *postgres* database in heroku server |
|
| 31 |
-4. Run ```git push heroku master``` to deploy the repo |
|
| 29 |
+2. Run ```rake assets:precompile``` |
|
| 30 |
+3. Run ```figaro heroku:set -e production``` to copy env variables from ```config/application.yml``` and set them in heroku |
|
| 31 |
+4. Add the heroku postgre addon: ```heroku addons:add heroku-postgresql``` to create and configure a *postgres* database in heroku server |
|
| 32 |
+5. Commit changes: ```git commit -a -m "commit message"``` |
|
| 33 |
+6. Push to heroku: ```git push heroku master``` to deploy the repo |
|
| 32 | 34 |
|
| 33 | 35 |
## Todo's |
| 34 | 36 |
|