Deploying Rails Apps using Capistrano. http://robustastudio.com/deploying-rails-apps-using-capistrano-part-one/
diff --git a/config/deploy.rb b/config/deploy.rb | |
index 422e82e..23a20e1 100644 | |
--- a/config/deploy.rb | |
+++ b/config/deploy.rb | |
@@ -1,14 +1,14 @@ | |
# config valid only for Capistrano 3.1 | |
lock '3.2.1' | |
-set :application, 'my_app_name' | |
-set :repo_url, 'git@example.com:me/my_repo.git' | |
+set :application, 'v.ps' | |
+set :repo_url, 'https://github.com/RaMin0/v.ps.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' | |
+set :deploy_to, '/home/deployer/public_html/v.ps' | |
# Default value for :scm is :git | |
# set :scm, :git | |
@@ -23,10 +23,10 @@ set :repo_url, 'git@example.com:me/my_repo.git' | |
# set :pty, true | |
# Default value for :linked_files is [] | |
-# set :linked_files, %w{config/database.yml} | |
+set :linked_files, %w{config/database.yml config/secrets.yml .env} | |
# Default value for linked_dirs is [] | |
-# set :linked_dirs, %w{bin log tmp/pids tmp/cache tmp/sockets vendor/bundle public/system} | |
+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" } | |
@@ -34,25 +34,6 @@ set :repo_url, 'git@example.com:me/my_repo.git' | |
# Default value for keep_releases is 5 | |
# set :keep_releases, 5 | |
-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') | |
- end | |
- end | |
- | |
- after :publishing, :restart | |
- | |
- after :restart, :clear_cache do | |
- on roles(:web), in: :groups, limit: 3, wait: 10 do | |
- # Here we can do anything such as: | |
- # within release_path do | |
- # execute :rake, 'cache:clear' | |
- # end | |
- end | |
- end | |
- | |
-end | |
+# Configure: capistrano/rvm | |
+set :rvm_type, :system | |
+set :rvm_ruby_version, '2.1.0' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment