Skip to content

Commit

Permalink
Edit the default data/deploy.rb to add rbenv/rvm notes. See #5, #39.
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Aug 7, 2012
1 parent c4d7ffc commit da5f2c6
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions data/deploy.rb
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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.
Expand All @@ -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

0 comments on commit da5f2c6

Please sign in to comment.