zachhale (owner)

Revisions

gist: 151414 Download_button fork
public
Public Clone URL: git://gist.github.com/151414.git
Embed All Files: show embed
.bashrc #
1
2
alias ss="/rails/.shortcuts/ss.rb"
 
hosts #
1
127.0.0.1 yoursite.dev
rappaport.yml #
1
2
3
yoursite:
  port: 3600
  server: development
ss.rb #
1
2
3
4
5
6
7
8
9
#!/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}")
 
vhost.conf #
1
2
3
4
5
6
<VirtualHost *:80>
ServerName yoursite.dev
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule (.*) http://localhost:3600$1 [P]
</VirtualHost>