Permalink
Browse files

Adding Capistrano deployment procedure.

  • Loading branch information...
1 parent 37f61dc commit 9b0e95f6456f8526346af1f5e1a00d21afc44d53 Daniel Nordstrom committed Jan 24, 2012
Showing with 34 additions and 1 deletion.
  1. +8 −0 Capfile
  2. +1 −0 Gemfile
  3. +19 −0 config/deploy.rb
  4. +6 −1 stylesheets/application.sass
  5. BIN views/.donate.slim.swp
View
@@ -0,0 +1,8 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+
+# Uncomment if you are using Rails' asset pipeline
+# load 'deploy/assets'
+
+Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+
+load 'config/deploy' # remove this line to skip loading any of the default tasks
View
@@ -1,5 +1,6 @@
source 'http://rubygems.org'
+gem 'capistrano'
gem 'sinatra'
gem 'thin'
gem 'slim'
View
@@ -0,0 +1,19 @@
+require 'bundler/capistrano'
+
+set :application, "mankindorganization.com"
+set :repository, "github.com:dnordstrom/mankindorganization.com.git"
+
+set :scm, :git
+set :user, 'dnordstrom'
+set :deploy_to, "/var/www/vhosts/mankindorganization.com"
+set :deploy_via, :remote_cache
+
+server "niroot.com", :app, :web, :db
+
+namespace :deploy do
+ task :start do ; end
+ task :stop do ; end
+ task :restart, :roles => :app, :except => { :no_release => true } do
+ run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
+ end
+end
@@ -6,12 +6,17 @@ body
font-size: 16px
font-weight: 400
line-height: 1.5em
+ margin: 0
+ padding: 0
section
background: rgba(255, 255, 255, 0.5)
+ border-bottom: 3px solid #eee
+ border-top: 3px solid #eee
+ margin: 5em 0
div
- margin: 5em auto
+ margin: 0 auto
position: relative
width: 800px
padding: 3em
View
Binary file not shown.

0 comments on commit 9b0e95f

Please sign in to comment.