Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add capistrano

  • Loading branch information...
commit b9efd038b19d1463a58f3347b2a1ac42fa85f701 1 parent 4c598bb
@alx authored
Showing with 38 additions and 0 deletions.
  1. +38 −0 json_server/config/deploy.rb
View
38 json_server/config/deploy.rb
@@ -0,0 +1,38 @@
+#$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
+#require "rvm/capistrano" # Load RVM's capistrano plugin.
+#set :rvm_ruby_string, 'ree@mood_chart' # Or whatever env you want it to run in.
+
+require 'bundler/capistrano'
+
+set :application, "politimap"
+
+set :repository, "git@github.com:alx/politimap.git"
+set :scm, :git
+
+set :ssh_options, { :forward_agent => true, :port => 22104 }
+
+set :user, "alex"
+set :group, "alex"
+set :deploy_to, "/home/alex/#{application}"
+
+set :domain, "88.191.126.74"
+server domain, :app, :web
+role :db, domain, :primary => true
+
+# if you're still using the script/reaper helper you will need
+# these http://github.com/rails/irs_process_scripts
+
+# If you are using Passenger mod_rails uncomment this:
+namespace :deploy do
+ task :start do ; end
+ task :stop do ; end
+ task :restart, :roles => :app, :except => { :no_release => true } do
+ run "touch #{File.join(current_path,'tmp','restart.txt')}"
+ end
+end
+
+task :link_shared_directories do
+end
+
+after "deploy:update_code", :link_shared_directories
+
Please sign in to comment.
Something went wrong with that request. Please try again.