Skip to content

Instantly share code, notes, and snippets.

@overdawn
overdawn / dep_sinatra.md
Created March 8, 2014 12:34
Deploy Sinatra application on shared hosting using Passenger (hostmonster)

Deploy Sinatra application on shared hosting using Passenger (hostmonster)

Prepare the application

  • Create folder ~/yourapp
  • Create folder ~/yourapp/tmp
  • Create file ~/yourapp/config.ru with the following content:
# encoding: UTF-8
require './appmain'
@overdawn
overdawn / dep_rack.md
Last active February 23, 2016 16:46
Deplay rack based application on shared hosting using Passenger (hostmonster)

Deploy rack based application on shared hosting using Passenger (hostmonster)

Prepare the application

  1. Create folder ~/yourapp
  2. Create folder ~/yourapp/tmp
  3. Create file ~/yourapp/config.ru with the following content:
app = proc do |env|