Port of bugsplat.info to sinatra
JavaScript HTML Ruby CSS
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
assets
bin
entries
public
views
.asset_host
.gitignore
.nginx.erb
.repo.yml
.sales_host
Capfile
Gemfile
Gemfile.lock
Procfile
README.md
Rakefile
app.rb
config.ru
cookie_adapter.rb
deploy.yml
page.rb
strip_renderer.rb
unicorn.rb

README.md

bugsplat.rb

This is the software, as well as the content, that resides on petekeen.net. It's a Sinatra application that renders Markdown into HTML and PDF.

Features

  • Easy to hack on
  • Easy to deploy
  • Flexible content
  • (mostly) static with the ability to add dyanmic routes

Deploying

$ bundle exec cap deploy deploy:cleanup

petekeen.net runs on a virtual machine at Digital Ocean named web01.bugsplat.info. The deploy process uses Capistrano::Buildpack and exports most pages as HTML, PDF (using Docverter, as well as a slightly-simplified form of Markdown. These files are then served up by Nginx.

Dynamic Routes

bugsplat.rb provides several dynamic routes as well:

  • /projects lists my open source projects and various side projects that I've worked on
  • /projects/:project_name renders the README.md file from each project.
  • /source is an instance of Grack that actually serves up my open source projects
  • /subscribe signs people up to my mailing lists
  • /checkup-apply-form handles the application form for Stripe Checkup
  • /ping is a simple active health check

Contributing

I don't do guest posts on petekeen.net. If you have a code patch, email it to bugsplat-rb-patch@petekeen.net.

License

Copyright (c) Okapi, LLC

Code (everything in a .rb file): MIT

Content (everything else): All rights reserved

Test issue linking #1