-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from curationexperts/capify
Initial capification
- Loading branch information
Showing
5 changed files
with
149 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Load DSL and set up stages | ||
require "capistrano/setup" | ||
|
||
# Include default deployment tasks | ||
require "capistrano/deploy" | ||
require 'capistrano/bundler' | ||
require "capistrano/passenger" | ||
require 'capistrano/rails/assets' | ||
require 'capistrano/rails/migrations' | ||
# Load the SCM plugin appropriate to your project: | ||
# | ||
# require "capistrano/scm/hg" | ||
# install_plugin Capistrano::SCM::Hg | ||
# or | ||
# require "capistrano/scm/svn" | ||
# install_plugin Capistrano::SCM::Svn | ||
# or | ||
require "capistrano/scm/git" | ||
install_plugin Capistrano::SCM::Git | ||
|
||
# Include tasks from other gems included in your Gemfile | ||
# | ||
# For documentation on these, see for example: | ||
# | ||
# https://github.com/capistrano/rvm | ||
# https://github.com/capistrano/rbenv | ||
# https://github.com/capistrano/chruby | ||
# https://github.com/capistrano/bundler | ||
# https://github.com/capistrano/rails | ||
# https://github.com/capistrano/passenger | ||
# | ||
# require "capistrano/rvm" | ||
# require "capistrano/rbenv" | ||
# require "capistrano/chruby" | ||
|
||
# Load custom tasks from `lib/capistrano/tasks` if you have any defined | ||
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# config valid only for current version of Capistrano | ||
lock "3.8.0" | ||
|
||
set :application, "laevigata" | ||
set :repo_url, "https://github.com/curationexperts/laevigata.git" | ||
set :deploy_to, '/opt/laevigata' | ||
|
||
set :log_level, :debug | ||
set :bundle_flags, '--deployment' | ||
set :bundle_env_variables, nokogiri_use_system_libraries: 1 | ||
|
||
set :keep_releases, 5 | ||
set :passenger_restart_with_touch, true | ||
set :assets_prefix, "#{shared_path}/public/assets" | ||
|
||
SSHKit.config.command_map[:rake] = 'bundle exec rake' | ||
|
||
# Default branch is :master | ||
set :branch, ENV['REVISION'] || ENV['BRANCH_NAME'] || 'master' | ||
|
||
set :linked_dirs, %w[ | ||
tmp/pids | ||
tmp/cache | ||
tmp/sockets | ||
public/assets | ||
] | ||
|
||
set :linked_files, %w[ | ||
config/blacklight.yml | ||
config/database.yml | ||
config/fedora.yml | ||
config/redis.yml | ||
config/resque-pool.yml | ||
config/role_map.yml | ||
config/secrets.yml | ||
config/solr.yml | ||
] | ||
|
||
# Default branch is :master | ||
# ask :branch, `git rev-parse --abbrev-ref HEAD`.chomp | ||
|
||
# Default deploy_to directory is /var/www/my_app_name | ||
# set :deploy_to, "/var/www/my_app_name" | ||
|
||
# Default value for :format is :airbrussh. | ||
# set :format, :airbrussh | ||
|
||
# You can configure the Airbrussh format using :format_options. | ||
# These are the defaults. | ||
# set :format_options, command_output: true, log_file: "log/capistrano.log", color: :auto, truncate: :auto | ||
|
||
# Default value for :pty is false | ||
# set :pty, true | ||
|
||
# Default value for :linked_files is [] | ||
# append :linked_files, "config/database.yml", "config/secrets.yml" | ||
|
||
# Default value for linked_dirs is [] | ||
# append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "public/system" | ||
|
||
# Default value for default_env is {} | ||
# set :default_env, { path: "/opt/ruby/bin:$PATH" } | ||
|
||
# Default value for keep_releases is 5 | ||
# set :keep_releases, 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# deploys to DCE sandbox | ||
set :stage, :aws | ||
set :rails_env, 'production' | ||
server 'emory.curationexperts.com', user: 'deploy', roles: [:web, :app, :db, :resque_pool] |