| ⌘T | go to file |
| ⌘⌃P | go to project |
| ⌘R | go to methods |
| ⌃G | go to line |
| ⌘KB | toggle side bar |
| ⌘⇧P | command prompt |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
This installs a patched ruby 1.9.3-p327 with various performance improvements and a backported COW-friendly GC, all courtesy of funny-falcon.
You will also need a C Compiler. If you're on Linux, you probably already have one or know how to install one. On OS X, you should install XCode, and brew install autoconf using homebrew.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set :shared_children, shared_children << 'tmp/sockets' | |
| namespace :deploy do | |
| desc "Start the application" | |
| task :start, :roles => :app, :except => { :no_release => true } do | |
| run "cd #{current_path} && RAILS_ENV=#{stage} bundle exec puma -b 'unix://#{shared_path}/sockets/puma.sock' -S #{shared_path}/sockets/puma.state --control 'unix://#{shared_path}/sockets/pumactl.sock' >> #{shared_path}/log/puma-#{stage}.log 2>&1 &", :pty => false | |
| end | |
| desc "Stop the application" | |
| task :stop, :roles => :app, :except => { :no_release => true } do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Access tty to ask for confirmation even if we're in a pipe (thanks Pow) | |
| TTY="/dev/$( ps -p$$ -o tty | tail -1 | awk '{print$1}' )" | |
| read -p "*** Do you want to reinstall the 'pg' gem [y/n]?" REINSTALL_PG < $TTY | |
| if [[ $REINSTALL_PG == "y" ]]; then | |
| gem uninstall pg | |
| gem install pg | |
| fi | |
| # Ask if the user wants to setup the db with a 'root' superuser? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ext-jruby-local ~/projects/jruby $ jruby -X-C -S irb | |
| irb(main):001:0> def foo | |
| irb(main):002:1> a = 1 | |
| irb(main):003:1> bar | |
| irb(main):004:1> puts a | |
| irb(main):005:1> end | |
| => nil | |
| irb(main):006:0> def bar | |
| irb(main):007:1> eval 'a = 2', Binding.of_caller(1) | |
| irb(main):008:1> end |