Skip to content

Instantly share code, notes, and snippets.

View SergeyKishenin's full-sized avatar
🥴
⏺ You're absolutely right!

Sergey Kishenin SergeyKishenin

🥴
⏺ You're absolutely right!
View GitHub Profile
@sbeam
sbeam / thin.sh
Created August 24, 2012 19:08
/etc/init.d/thin - replacement that runs bundle exec thin within each site
#!/bin/bash
### BEGIN INIT INFO
# Provides: thin
# Required-Start: $local_fs $remote_fs
# Required-Stop: $local_fs $remote_fs
# Default-Start: 2 3 4 5
# Default-Stop: S 0 1 6
# Short-Description: thin initscript
# Description: thin
### END INIT INFO
@linjunpop
linjunpop / deploy-rails-4-app-with-dokku-on-digital-ocean.md
Last active September 11, 2024 10:21
Deploy Rails 4 app with Dokku on DigitalOcean

Deploy Rails 4 app with Dokku on DigitalOcean

Install dokku

First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel

Then ssh with root account, run this in termianl:

$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
@romanenko
romanenko / bot-mate.js
Last active December 22, 2015 02:48
Simple nodejs server, that receives request with _escaped_fragment_ parameter, and renders back client-side gererated html from given host. Useful for single-page apps, with hashbang-style routes, to make them crawlable, and bot-friendly. (Read this great article for details: http://pivotallabs.com/seo-friendly-single-page-apps-in-rails/).
// Bot-mate by Zero.One (http://www.zeroone.st)
// Simple nodejs server, that receives request with _escaped_fragment_ parameter, and renders back client-side gererated html from given host.
// Useful for single-page apps, with hashbang-style routes, to make them crawlable, and bot-friendly.
// (Read this great article for details: http://pivotallabs.com/seo-friendly-single-page-apps-in-rails/)
//
// Requirements: node and phantomjs in your PATH.
// TODO: Exception handling
// TODO: Caching support
// TODO: Add Nginx and Apache config example
//