This file contains 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
# http://torquebox.org/documentation/LATEST/deployment-descriptors.html | |
application: | |
root: /home/****/apps/green_tick/development/current/ | |
env: development | |
web: | |
context: / | |
environment: | |
BUNDLE_WITHOUT: "development:test" |
This file contains 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
require 'java' | |
require 'stringio' | |
include Java | |
mydir = File.expand_path(File.dirname(__FILE__)) | |
require File.join(mydir, 'htmlcleaner-2.2.jar') | |
import "org.htmlcleaner.HtmlCleaner" |
This file contains 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
require 'java' | |
require 'stringio' | |
include Java | |
mydir = File.expand_path(File.dirname(__FILE__)) | |
require File.join(mydir, 'jsoup-1.6.1.jar') | |
import "org.jsoup.Jsoup" | |
import "org.jsoup.safety.Whitelist" |
This file contains 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
source 'http://rubygems.org' | |
gem 'bundler' | |
gem 'rails', '3.0.10' | |
gem 'ancestry' | |
gem 'acts_as_list', :git => 'git://github.com/swanandp/acts_as_list.git' # has default_scope fix | |
gem 'nested_set' | |
gem 'mechanize' |
This file contains 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
GIT | |
remote: git://github.com/krisleech/dragonfly.git | |
revision: f621fd8d059f649f8643584141f4748cd8435f76 | |
branch: torquebox_fix | |
specs: | |
dragonfly (0.9.3) | |
rack | |
GIT | |
remote: git://github.com/swanandp/acts_as_list.git |
This file contains 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
# undefined method `reverse' for nil:NilClass | |
# activerecord-jdbc-adapter (1.2.0) lib/arjdbc/mysql/adapter.rb:432:in `exec_insert' | |
# org/jruby/RubyString.java:2739:in `gsub' | |
# org/jruby/RubyString.java:2719:in `gsub' | |
# activerecord-jdbc-adapter (1.2.0) lib/arjdbc/mysql/adapter.rb:432:in `exec_insert' | |
# activerecord (3.1.1) lib/active_record/connection_adapters/abstract/database_statements.rb:96:in `update' | |
# activerecord (3.1.1) lib/active_record/connection_adapters/abstract/query_cache.rb:19:in `update' | |
# /gems/activerecord-jdbc-adapter-1.2.0/lib/arjdbc/mysql |
This file contains 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
Using running JBoss (try lazy=false if you get errors) | |
The signal QUIT is in use by the JVM and will not work correctly on this platform | |
SOCKET: SET COMM INACTIVITY UNIMPLEMENTED 30 | |
java(2362,0x10d301000) malloc: *** error for object 0x102926070: pointer being freed was not allocated | |
*** set a breakpoint in malloc_error_break to debug |
This file contains 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
class Deployer | |
attr_reader :app_name, :environment, :root_dir, :deploy_dir, :current_dir, :shared_dir, :torquebox_dir, :torquebox_apps_dir, :server, :dry_run, :commands | |
def initialize(environment = 'staging', dry_run = false) | |
@app_name = 'my_app_name' | |
@environment = environment.to_s | |
@root_dir = '/home/XXXXX/apps' | |
@deploy_dir = File.join(root_dir, app_name, environment) | |
@current_dir = File.join(deploy_dir, 'current') | |
@shared_dir = File.join(deploy_dir, 'shared') |
This file contains 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
class RevisionRequest < ActiveRecord::Base | |
belongs_to :document | |
belongs_to :version | |
before_save :ensure_authentication_token | |
accepts_nested_attributes_for :document | |
devise :token_authenticatable, :trackable, :timeoutable |
This file contains 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
class Deployer | |
attr_reader :app_name, :environment, :root_dir, :deploy_dir, :current_dir, :shared_dir, :torquebox_dir, :torquebox_apps_dir, :server, :dry_run, :commands | |
def initialize(environment = 'staging', dry_run = false) | |
@app_name = 'green_tick' | |
@environment = environment.to_s | |
@root_dir = '/home/kris/apps' | |
@deploy_dir = File.join(root_dir, app_name, environment) | |
@current_dir = File.join(deploy_dir, 'current') | |
@shared_dir = File.join(deploy_dir, 'shared') |