aboutsummaryrefslogtreecommitdiffstats
path: root/config/deploy.rb.example
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-11-08 21:58:41 +0100
committerHarald Eilertsen <haraldei@anduin.net>2014-11-08 21:58:41 +0100
commit1d77f6f27bb9ab69e9e3e6453b383e4b01e51127 (patch)
treec2d3ae3e2e40af6c4d92105cc185ba4b325b34e1 /config/deploy.rb.example
parent6d1c61e2902efdd13a7a7805f9b24cac51d6f29f (diff)
downloadhmnoweb-1d77f6f27bb9ab69e9e3e6453b383e4b01e51127.tar.gz
hmnoweb-1d77f6f27bb9ab69e9e3e6453b383e4b01e51127.tar.bz2
hmnoweb-1d77f6f27bb9ab69e9e3e6453b383e4b01e51127.zip
Update capistrano deploy script.
Make sure we link in the proper config and the public/system directory from the shared directory.
Diffstat (limited to 'config/deploy.rb.example')
-rw-r--r--config/deploy.rb.example42
1 files changed, 9 insertions, 33 deletions
diff --git a/config/deploy.rb.example b/config/deploy.rb.example
index dd8b2e7..f08e859 100644
--- a/config/deploy.rb.example
+++ b/config/deploy.rb.example
@@ -1,46 +1,22 @@
-# config valid only for Capistrano 3.1
lock '3.2.1'
-set :application, 'my_app'
-set :repo_url, 'git@github.com:snake66/project-limestone.git'
-
-# Default branch is :master
-# ask :branch, proc { `git rev-parse --abbrev-ref HEAD`.chomp }.call
-
-# Default deploy_to directory is /var/www/my_app
-# set :deploy_to, '/var/www/my_app'
-
-# Default value for :scm is :git
-# set :scm, :git
-
-# Default value for :format is :pretty
-# set :format, :pretty
+# change this to your application name
+set :application, 'hmno'
-# Default value for :log_level is :debug
-# set :log_level, :debug
-
-# Default value for :pty is false
-# set :pty, true
-
-# Default value for :linked_files is []
-# set :linked_files, %w{config/database.yml}
-
-# Default value for linked_dirs is []
-# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
-
-# Default value for default_env is {}
-# set :default_env, { path: "/opt/ruby/bin:$PATH" }
+# change this to your fork
+set :repo_url, 'git@github.com:snake66/project-limestone.git'
-# Default value for keep_releases is 5
-# set :keep_releases, 5
+set :linked_files, %w{config/initializers/refinery/core.rb config/initializers/secret_token.rb}
+set :linked_dirs, %w{log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system}
namespace :deploy do
desc 'Restart application'
task :restart do
on roles(:app), in: :sequence, wait: 5 do
- # Your restart mechanism here, for example:
- # execute :touch, release_path.join('tmp/restart.txt')
+ # Touching this file forces the server to reload
+ # the application
+ execute :touch, release_path.join('tmp/restart.txt')
end
end