Permalink
Browse files

Initial deployment scheme

  • Loading branch information...
1 parent 005804e commit 56a30cfca001c3aedda29b8935a4de2fdab9ab9e @jaytaph jaytaph committed Jan 16, 2016
Showing with 33 additions and 0 deletions.
  1. +4 −0 Capfile
  2. +28 −0 config/deploy.rb
  3. +1 −0 config/deploy/production.rb
View
@@ -0,0 +1,4 @@
+require 'capistrano/setup'
+require 'capistrano/deploy'
+
+Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
View
@@ -0,0 +1,28 @@
+lock '3.4.0'
+
+set :application, 'restcookbook'
+
+set :scm, :git
+set :repo_url, 'https://github.com/restcookbook/restcookbook.git'
+set :branch, "master"
+
+set :format, :pretty
+set :log_level, :debug
+
+set :keep_releases, 5
+
+set :port, 22
+set :deploy_to, '/wwwroot/restcookbook.com'
+set :use_sudo, false
+
+namespace :deploy do
+ task :build_jekyll do
+ on roles(:app) do
+ within "#{deploy_to}/current" do
+ execute :jekyll, "build"
+ end
+ end
+ end
+end
+
+after "deploy:symlink:release", "deploy:build_jekyll"
@@ -0,0 +1 @@
+server 'restcookbook.com', user: 'jthijssen', roles: %w{app}

0 comments on commit 56a30cf

Please sign in to comment.