Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Adding Capistrano deployment procedure.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nordstrom committed Jan 24, 2012
1 parent 37f61dc commit 9b0e95f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
8 changes: 8 additions & 0 deletions Capfile
Original file line number Original file line Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions Gemfile
Original file line number Original file line Diff line number Diff line change
@@ -1,5 +1,6 @@
source 'http://rubygems.org' source 'http://rubygems.org'


gem 'capistrano'
gem 'sinatra' gem 'sinatra'
gem 'thin' gem 'thin'
gem 'slim' gem 'slim'
Expand Down
19 changes: 19 additions & 0 deletions config/deploy.rb
Original file line number Original file line Diff line number Diff line change
@@ -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
7 changes: 6 additions & 1 deletion stylesheets/application.sass
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ body
font-size: 16px font-size: 16px
font-weight: 400 font-weight: 400
line-height: 1.5em line-height: 1.5em
margin: 0
padding: 0


section section
background: rgba(255, 255, 255, 0.5) background: rgba(255, 255, 255, 0.5)
border-bottom: 3px solid #eee
border-top: 3px solid #eee
margin: 5em 0


div div
margin: 5em auto margin: 0 auto
position: relative position: relative
width: 800px width: 800px
padding: 3em padding: 3em
Expand Down
Binary file removed views/.donate.slim.swp
Binary file not shown.

0 comments on commit 9b0e95f

Please sign in to comment.