Skip to content

Instantly share code, notes, and snippets.

@zachhale
Created July 21, 2009 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zachhale/151414 to your computer and use it in GitHub Desktop.
Save zachhale/151414 to your computer and use it in GitHub Desktop.
alias ss="/rails/.shortcuts/ss.rb"
127.0.0.1 yoursite.dev
yoursite:
port: 3600
server: development
#!/usr/bin/env ruby
require 'yaml'
apps = YAML.load_file('/rails/.shortcuts/rappaport.yml')
current_app = Dir.pwd.split("/").last
port = apps[current_app]["port"]
server = apps[current_app]["server"]
system("script/server -p #{port} -e #{server}")
<VirtualHost *:80>
ServerName yoursite.dev
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://localhost:3600$1 [P]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment