https://github.com/jokull/scrup-s3
https://github.com/jokull/scrup-s3
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jokull/scrup-s3
- Owner: jokull
- Created: 2012-11-15T14:38:37.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-11-15T15:03:42.000Z (almost 13 years ago)
- Last Synced: 2025-09-27T06:38:41.410Z (about 1 month ago)
- Language: Python
- Size: 105 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Scrup S3
========
A simple server to receive [Scrup](https://github.com/rsms/scrup) screenshots,
upload to S3 and return a public viewable URL to the image.
+ Ready for Heroku
+ Minimal code, easy to understand and customize
Setup
-----
1. Clone and `cd scrup-s3`
2. `$ virtualenv venv`
3. `$ heroku create scrup-xxxx`
4. `$ touch .env`
Sample `.env`
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
PORT=8000
S3_BUCKET=s3.solberg.is
S3_CNAME=s3.solberg.is
You can omit the `S3_CNAME` if you haven’t set one up.
Test
----
$ source venv/bin/activate
$ pip install -r requirements.txt
$ foreman start
Point your current scrup to localhost:8000 and try Ctrl+Shift+4-ing something.
Deploy
------
$ heroku config:push
$ git push heroku master