diff --git a/Capfile b/Capfile new file mode 100644 index 00000000..f8a40843 --- /dev/null +++ b/Capfile @@ -0,0 +1,8 @@ +load 'deploy' if respond_to?(:namespace) # cap2 differentiator + +# Uncomment if you are using Rails' asset pipeline +# load 'deploy/assets' + +Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } + +load 'config/deploy' # remove this line to skip loading any of the default tasks \ No newline at end of file diff --git a/config/deploy.rb b/config/deploy.rb new file mode 100644 index 00000000..4ce5a7d0 --- /dev/null +++ b/config/deploy.rb @@ -0,0 +1,39 @@ +$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) +require "bundler/capistrano" +load 'deploy/assets' + +# Load RVM's capistrano plugin. +require "rvm/capistrano" + +set :application, "qwaiter" +set :repository, "root@uflows.com:/var/git/qrammer_rails.git" + +set :scm, :git +# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` + +# Do not touch public/images,stylesheets,javascripts +set :normalize_asset_timestamps, false + +role :web, "qwaiter.com" # Your HTTP server, Apache/etc +role :app, "qwaiter.com" # This may be the same as your `Web` server +#role :db, "your primary db-server here", :primary => true # This is where Rails migrations will run +#role :db, "your slave db-server here" + +# if you're still using the script/reaper helper you will need +# these http://github.com/rails/irs_process_scripts + +set :deploy_via, :remote_cache +set :branch, :master +set :user, 'root' +set :deploy_to, '/var/www/qwaiter' +#set :bundle_cmd, 'bundle install --deployment' + +# 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 "#{try_sudo} chown -R www-data:www-data #{release_path}" + run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" + end +end