Sha256: 91c433e81ddf9c952c289f6484d51dea0b634a40424a501e4df906768d2c19ab

Contents?: true

Size: 1.59 KB

Versions: 10

Compression:

Stored size: 1.59 KB

Contents

set :application, '<%= File.basename(@path) %>'
set :repository, "set this to URL of your site's repo"

# Set :user if you want to connect (via ssh) to your server using a
# different username. You will also need to include the user in :domain
# (see below).
#
#set :user, "deploy"
#set :domain, "#{user}@example.com"
set :domain, "example.com"

set :deploy_to, "/var/apps/#{application}"

# ============================================================================
# You probably don't need to worry about anything beneath this point...
# ============================================================================

require "tempfile"
require "vlad"

namespace :vlad do
  remote_task :symlink_attachments do
    run "ln -s #{shared_path}/content/attachments #{current_path}/public/attachments"
  end
  
  task :update do
    Rake::Task["vlad:symlink_attachments"].invoke
  end

  remote_task :bundle do
    run "cd #{current_path} && sudo bundle install --without development test"
  end
  
  # Depending on how you host Nesta, you might want to swap :start_app
  # with :start below. The :start_app task will tell your application
  # server (e.g. Passenger) to restart once your new code is deployed by
  # :update. Passenger is the default app server; tell Vlad that you're
  # using a different app server in the call to Vlad.load in Rakefile.
  #
  desc "Deploy the code and restart the server"
  task deploy: [:update, :start_app]

  # If you use bundler to manage the installation of gems on your server
  # you can use this definition of the deploy task instead:
  #
  # task deploy: [:update, :bundle, :start_app]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nesta-0.18.0 templates/config/deploy.rb
nesta-0.17.0 templates/config/deploy.rb
nesta-0.16.0 templates/config/deploy.rb
nesta-0.15.0 templates/config/deploy.rb
nesta-0.14.0 templates/config/deploy.rb
nesta-0.13.0 templates/config/deploy.rb
nesta-0.12.0 templates/config/deploy.rb
nesta-0.11.1 templates/config/deploy.rb
nesta-0.11.0 templates/config/deploy.rb
nesta-0.10.0 templates/config/deploy.rb