Skip to content

Instantly share code, notes, and snippets.

View larryzhao's full-sized avatar
🐱
Meow

Larry Zhao larryzhao

🐱
Meow
View GitHub Profile
$ cap deploy:start
triggering load callbacks
* executing `staging'
triggering start callbacks for `deploy:start'
* executing `multistage:ensure'
* executing `deploy:start'
Starting TorqueBox AS
* executing "nohup /usr/local/rvm/gems/jruby-1.6.7@global/gems/torquebox-server-2.0.0.cr1-java/jboss/bin/standalone.sh -b 0.0.0.0 < /dev/null > /dev/null 2>&1 &"
servers: ["domain"]
[domain] executing command
@larryzhao
larryzhao / deploy.rb
Created March 15, 2012 10:58
torquebox.yml
require 'torquebox-capistrano-support'
require 'bundler/capistrano'
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require "rvm/capistrano" # Load RVM's capistrano plugin.
set :rvm_ruby_string, 'jruby-1.6.7@myapp'
set :use_sudo, false
set :stages, %w(staging production)
set :default_stage, "production"
require 'capistrano/ext/multistage'
@larryzhao
larryzhao / testruby.rb
Created March 31, 2011 23:04
just test
def thefunc
@this = "123"
end