Permalink
Browse files

Pretty much done with how to deploy stuff, I think

  • Loading branch information...
1 parent d52f720 commit 70d87579e19b476780401c720b1c7241a587be78 @rbgrouleff committed Oct 7, 2012
Showing with 11 additions and 1 deletion.
  1. +10 −0 lib/wheelbarrow.rb
  2. +1 −1 lib/wheelbarrow/wagonload.rb
View
@@ -2,7 +2,17 @@
require "wheelbarrow/wagonload"
module Wheelbarrow
+ def self.deploy app_dir, repo
+ wagonload = new Wagonload app_dir, repo
+ wagonload.pull
+ wagonload.bundle_install
+ wagonload.run_migrations
+ wagonload.assets_precompiling
+ wagonload.restart_unicorn
+ end
end
+
+
puts `ls`
puts $?.exitstatus
@@ -1,6 +1,6 @@
module Wheelbarrow
class Wagonload
- def initialize(app_dir, repo)
+ def initialize app_dir, repo
@app_dir = app_dir
@repo = repo
end

0 comments on commit 70d8757

Please sign in to comment.