adamwiggins / scanty
- Source
- Commits
- Network (66)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Tree:
3d13293
Adam Wiggins (author)
Mon Mar 30 02:04:15 -0700 2009
commit 3d13293cd697215f6b3edd745bb54d4d001890c9
tree ff362269a046fb9ccb57813e848dc6c1641e467e
parent 88af43de1237818bb504e1375b7b5411a4be11ed
tree ff362269a046fb9ccb57813e848dc6c1641e467e
parent 88af43de1237818bb504e1375b7b5411a4be11ed
scanty / README.rdoc
| 5a16b8ee » | adamwiggins | 2008-11-02 | 1 | = Scanty, a really small blog | |
| 2 | |||||
| 3 | == Overview | ||||
| 4 | |||||
| 1f541a80 » | adamwiggins | 2008-11-04 | 5 | Scanty is blogging software. Software for my blog, to be exact: | |
| 5a16b8ee » | adamwiggins | 2008-11-02 | 6 | http://adam.blog.heroku.com | |
| 7 | |||||
| 8 | It is not a blogging engine, but it's small and easy to modify, so it could be | ||||
| 9 | the starting point for your blog, too. | ||||
| 10 | |||||
| 11 | == Features | ||||
| 12 | |||||
| 13 | * Posts (shock!) | ||||
| 14 | * Tags | ||||
| 40e289fb » | adamwiggins | 2008-11-16 | 15 | * Markdown (via Maruku) | |
| 5a16b8ee » | adamwiggins | 2008-11-02 | 16 | * Ruby code syntax highlighting (via Syntax) | |
| 17 | * Atom feed | ||||
| 18 | * Comments via Disqus | ||||
| 19 | * Web framework = Sinatra | ||||
| 20 | * ORM = Sequel | ||||
| 21 | |||||
| 22 | == Dependencies | ||||
| 23 | |||||
| 40e289fb » | adamwiggins | 2008-11-16 | 24 | $ gem install sinatra | |
| 25 | |||||
| 26 | Sequel, Maruku, and Syntax are all vendored. | ||||
| 5a16b8ee » | adamwiggins | 2008-11-02 | 27 | ||
| 28 | == Setup | ||||
| 29 | |||||
| 30 | Edit main.rb and change the Blog config struct at the top to your liking. For | ||||
| 1f541a80 » | adamwiggins | 2008-11-04 | 31 | security purposes, change the admin password and the admin cookie key and | |
| 32 | value. These last two can be set to any random value you like, just choose | ||||
| 33 | something other than the default. | ||||
| 5a16b8ee » | adamwiggins | 2008-11-02 | 34 | ||
| 35 | Then run the server: | ||||
| 36 | |||||
| 37 | $ ruby main.rb | ||||
| 38 | |||||
| 3d13293c » | Adam Wiggins | 2009-03-30 | 39 | And visit: http://localhost:4567 | |
| 5a16b8ee » | adamwiggins | 2008-11-02 | 40 | ||
| 41 | Log in with the password you selected, then click New Post. The rest should be | ||||
| 42 | self-explanatory. | ||||
| 43 | |||||
| 44 | In production, you'll probably want to run "rake start" to start (and restart) | ||||
| 45 | the server. Change the value of "port" at the top of the Rakefile to run on a | ||||
| 46 | different port. | ||||
| 47 | |||||
| 48 | == Database | ||||
| 49 | |||||
| 50 | The default is a SQLite file named blog.db. To use something else, set | ||||
| 51 | DATABASE_URL in your environment when running the app, i.e.: | ||||
| 52 | |||||
| 53 | $ DATABASE_URL='mysql://localhost/myblog' ruby main.rb | ||||
| 54 | |||||
| 55 | Or, modify the Sequel.connect statement at the top of main.rb. | ||||
| 56 | |||||
| 57 | The database will be created automatically when the server is executed. | ||||
| 58 | |||||
| d96f5e42 » | adamwiggins | 2008-11-04 | 59 | == Comments | |
| 60 | |||||
| 61 | There are no comments by default. If you wish to activate comments, create an | ||||
| 62 | account and a website on Disqus (disqus.com) and enter the website shortname as | ||||
| 63 | the :disqus_shortname value in the Blog config struct. | ||||
| 64 | |||||
| b8fe1e66 » | adamwiggins | 2008-11-19 | 65 | == Import data | |
| 66 | |||||
| 67 | Christopher Swenson has a Wordpress importer: http://github.com/swenson/scanty_wordpress_import | ||||
| 68 | |||||
| 69 | Other kinds of data can be imported easily, take a look at the rake task :import for an example of loading from a YAML file with field names that match the database schema. | ||||
| 70 | |||||
| 5a16b8ee » | adamwiggins | 2008-11-02 | 71 | == Customize | |
| 72 | |||||
| 73 | There are no themes or settings beyond the basic ones in the Blog struct. Just | ||||
| 74 | edit the CSS or the code as you see fit. | ||||
| 75 | |||||
| 76 | == Meta | ||||
| 77 | |||||
| 78 | Written by Adam Wiggins | ||||
| 79 | |||||
| 88af43de » | adamwiggins | 2009-02-17 | 80 | Patches contributed by: Christopher Swenson, S. Brent Faulkner, and Stephen Eley | |
| 86021e13 » | adamwiggins | 2008-11-16 | 81 | ||
| 5a16b8ee » | adamwiggins | 2008-11-02 | 82 | Released under the MIT License: http://www.opensource.org/licenses/mit-license.php | |
| 83 | |||||
| 3d13293c » | Adam Wiggins | 2009-03-30 | 84 | http://github.com/adamwiggins/scanty | |
| 5a16b8ee » | adamwiggins | 2008-11-02 | 85 | ||
| 3d13293c » | Adam Wiggins | 2009-03-30 | 86 | http://adam.blog.heroku.com | |
| 5a16b8ee » | adamwiggins | 2008-11-02 | 87 | ||
