Simplest static site on Heroku (plain Rack)?

gem 'rack-rewrite', '~> 1.0.0'
require 'rack/rewrite'

use Rack::Rewrite do
  rewrite '/favicon.ico', '/images/favicon.ico'
  rewrite '/', '/index.html'
end
run Rack::File.new('public')

Filed under  //   hosting   ruby   tech  

Comments [0]

Tagging a git release with current branch name and date

Either add this to your .git/config

[alias]
datetag = !git tag `git name-rev --name-only HEAD`-`date \"+%Y%m%d%H%M\"`

or run it in your project folder to add it to the config for that project:

git config alias.datetag '!git tag `git name-rev --name-only HEAD`-`date "+%Y%m%d%H%M"`'

Then you can just run 'git datetag' to create a new tag to use as a release

Filed under  //   deployment   git   hosting   tech  

Comments [0]

Setting RAILS_ENV on Dreamhost when running Passenger

It may depend on which server you are on, but mine has mod_env
enabled, so it's a simple matter of setting the ENV['RAILS_ROOT'] in
an .htacess file
SetEnv RAILS_ENV staging
Filed under  //   dreamhost   hosting   rubyonrails   tech  

Comments [0]

Filed under  //   hosting   metal   rack   ruby   rubyonrails  

Comments [0]

Filed under  //   hosting   metal   rack   ruby   rubyonrails  

Comments [0]

Filed under  //   apache   dreamhost   hosting   ruby   rubyonrails  

Comments [0]

Filed under  //   apache   dreamhost   hosting   ruby   rubyonrails  

Comments [0]

Filed under  //   blogging   dreamhost   hosting   tech  

Comments [0]

Filed under  //   camping   dreamhost   hosting   ruby  

Comments [0]

Filed under  //   dreamhost   hosting   rubyonrails   tech  

Comments [0]