Skip to content

Commit

Permalink
Merge pull request #35 from spartansystems/feature-media-docs
Browse files Browse the repository at this point in the history
Updated the readme for media
  • Loading branch information
bbrock25 committed Oct 28, 2015
2 parents 4de89b7 + adf8ef8 commit e3f28e9
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,32 @@ To verify, start the server and visit `localhost:3000/admin`. If you can login
as `[email protected]` with the password `password` you have successfully
completed this step.

### Media Upload
To install the media tables so that you can upload files until your heart is
literally full run:
```
rake atomic_cms:install:migrations
rake db:migrate
```
Also, you should configure paperclip to use s3, since s3 is better than local
file storage.
```ruby
class Application < Rails::Application
...
config.paperclip_defaults = {
storage: :s3,
s3_protocol: "https",
s3_credentials: {
bucket: ENV.fetch("AWS_S3_BUCKET", ""),
access_key_id: ENV.fetch("AWS_ACCESS_KEY", ""),
secret_access_key: ENV.fetch("AWS_SECRET", ""),
s3_host_name: "s3-#{ENV.fetch('AWS_REGION', '')}.amazonaws.com"
}
}
...
end
```

#### Styles
In order for component previews to have the proper project styling,
`active_admin.scss` will need to be updated to import your `application.scss`.
Expand Down

0 comments on commit e3f28e9

Please sign in to comment.