Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
41 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
heroku sprunge | ||
============== | ||
|
||
*Roll your own sprunge on your domain* | ||
|
||
This is inspired by and shares some code with http://sprunge.us. | ||
|
||
This is a simple Flask app that uses Pygments to highlight the code. It uses | ||
MongoDB to store the snippets. Heroku gives you 240MB of MongoDB storage for | ||
free. All you need is a free Heroku account and a bit of time. | ||
|
||
|
||
Setup | ||
----- | ||
|
||
$ git clone git://github.com/honza/heroku-sprunge.git | ||
$ cd heroku-sprunge | ||
$ heroku create --stack cedar | ||
$ heroku addons:add mongolab:starter | ||
$ # Add settings: heroku config:add | ||
$ git push heroku master | ||
|
||
Env settings | ||
------------ | ||
|
||
* `SPRUNGE_HOST` - the url where this will be hosted (no trailing slash) | ||
* `SPRUNGE_NAME` - the POST payload key | ||
* `SPRUNGE_MONGO_URI` - the MongoLab URL from Heroku (`heroku config | grep | ||
mongo`) | ||
* `SPRUNGE_MONGO_DB_NAME` - the string after the last slash on | ||
`SPRUNGE_MONGO_URI` | ||
|
||
|
||
Set these with: | ||
|
||
$ heroku config:add KEY=VALUE | ||
|
||
License | ||
------- | ||
|
||
BSD, short and sweet. |