Skip to content
Capistrano deployment recipes for mono web application
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
.gitignore
Gemfile
LICENSE.txt
README.md
Rakefile
capistrano-mono-deploy.gemspec

README.md

Capistrano::Mono::Deploy

Capistrano recipe for deploying mono apps utilising railsless-deploy

Features

  • Provides cap deploy functionality for your mono app
  • Automatically starts application using xsp4, fastcgi or using your own custom scripts
  • Provides tasks for starting (cap mono:start) and stopping (cap mono:stop) your mono app

Installation

Add this line to your application's Gemfile:

gem 'capistrano-mono-deploy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install capistrano-mono-deploy

Usage

xsp4 capfile example

You probably shouldn't use xsp as a production server, consider using nginx with fastcgi

require "capistrano/mono-deploy"

role :app, "your.server.fqdn"
set :user, "deploy"
set :deploy_to, "/var/apps/my-app-folder"

fastcgi capfile example

This will run fastcgi-mono-server4.exe in the background, if the process dies it will not bring it back up again

require "capistrano/mono-deploy"

role :app, "your.server.fqdn"
set :user, "deploy"
set :deploy_to, "/var/apps/my-app-folder"
set :mono_app, :fastcgi

Custom command capfile example

require "capistrano/mono-deploy"

role :app, "your.server.fqdn"
set :user, "deploy"
set :deploy_to, "/var/apps/my-app-folder"

set :mono_app, :custom
set :custom_stop, "service myMonoApplicaton stop"
set :custom_start, "service myMonoApplicaton start"

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Bugs & Feedback

Via my Github profile please:

http://github.com/antonydenyer

You can’t perform that action at this time.