Comments (12)
I've found that it's pretty easy to adapt. spectre uses the Dragonfly gem for file storage, and there's an S3 variant. So all you need to do is:
Add:
gem 'dragonfly-s3_data_store'
To your Gemfile, bundle install and then tweak config/inializers/dragonfly.rb to include:
require 'dragonfly/s3_data_store'
at the top and
datastore :s3,
bucket_name: 'YOUR-S3-BUCKET',
access_key_id: 'YOUR_ACCESS_KEY',
secret_access_key: 'YOUR_SECRET_ACCESS_KEY'
under the Dragonfly.app.configure do section. Just like magic, Heroku works well!
from spectre.
Alternatively possibly the paperclip gem could be used. Paperclip supports many different cloud storage options.
from spectre.
@calaway Thanks -- it's my first time contributing. I've opened a PR (above) -- hope it helps folks.
from spectre.
Any chance you can PR this change?
from spectre.
@Firefishy I've got it all ready to go locally. Add me in so I can publish the branch?
from spectre.
I've still got the the pull request ready to go, but I don't have permission to publish it to GitHub. I'm happy to share it, just let me know
from spectre.
Supporting S3 out of the box would be a great feature
from spectre.
I implemeneted a version that uses S3 for storage, which also works with non AWS S3, such as IBM Cloud S3, and minio
However , it doesn't fully store everything in S3 due to the way thumbnails are implemented - they are stored in the system/dragonfly/#{Rails.env}/thumbnails folder. So to fully support S3 the thumbnails need to be migrated to use the dragonfly api as well.
from spectre.
I'm not a ruby programmer, however from my research it looks like a dragonfly upfront processor could be used to do the thumbnails http://markevans.github.io/dragonfly/models#up-front
from spectre.
I implement thumbnails using dragonfly cameronbraid@4496c70
from spectre.
@lanej0, instead of having the maintainer give you write access to this repo, you can fork it and submit a PR from your fork back to the original. This is a typical pattern for open source contributions.
I need the same thing, so it would be great to see your solution. Thank you, sir.
from spectre.
@lanej0 @calaway I've merged that PR, so closing this issue. Will reopen if people have trouble getting s3 integration working.
from spectre.
Related Issues (20)
- Java Client for Spectre - Getting 500 error on submit tests HOT 10
- Ignore element e.g. image carousel HOT 2
- Hangup under Mac OSx with Docker HOT 5
- gemini integration? HOT 1
- Is this project still being maintained? HOT 4
- Test various Mobile device and browser HOT 1
- ERROR: Service 'app' failed to build HOT 1
- DB Migration PostgreSQL 9.6 HOT 1
- docker network HOT 1
- Can't see past the previous 5 runs HOT 2
- Docker installation fails: HOT 1
- heroku failed deploy HOT 3
- Travis failing
- Docker Test run unable to find phantom HOT 2
- docker-compose up fails HOT 3
- Describe POST /test example parameters HOT 2
- Error while accessing Spectre application on browser HOT 2
- What means "fuzzLevel"? HOT 1
- Impossible to set screenshot size with width less than 500px HOT 1
- Good example of a working project? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spectre.