diff --git a/data/deploy.rb b/data/deploy.rb index 970335d2..580dd28e 100644 --- a/data/deploy.rb +++ b/data/deploy.rb @@ -1,13 +1,8 @@ -# For help in making your deploy script, see the Mina documentation: -# -# - http://nadarei.co/mina -# - http://nadarei.co/mina/tasks -# - http://nadarei.co/mina/settings -# - http://nadarei.co/mina/helpers - require 'mina/bundler' require 'mina/rails' require 'mina/git' +# require 'mina/rbenv' # for rbenv support. (http://rbenv.org) +# require 'mina/rvm' # for rvm support. (http://rvm.io) # Basic settings: # domain - The hostname to SSH to. @@ -28,8 +23,19 @@ # set :user, 'foobar' # Username in the server to SSH to. # set :port, '30000' # SSH port number. +# This task is the environment that is loaded for most commands, such as +# `mina deploy` or `mina rake`. +task :environment do + # If you're using rbenv, use this to load the rbenv environment. + # Be sure to commit your .rbenv-version to your repository. + # invoke :'rbenv:load' + + # For those using RVM, use this to load an RVM version@gemset. + # invoke :'rvm:use[ruby-1.9.3-p125@default]' +end + desc "Deploys the current version to the server." -task :deploy do +task :deploy => :environment do deploy do # Put things that will set up an empty directory into a fully set-up # instance of your project. @@ -44,3 +50,11 @@ end end end + +# For help in making your deploy script, see the Mina documentation: +# +# - http://nadarei.co/mina +# - http://nadarei.co/mina/tasks +# - http://nadarei.co/mina/settings +# - http://nadarei.co/mina/helpers +