Sha256: 9433bd88ea2c7f2970badf48f7d4bb99a262eaa9dbd1c8b819bc92201316a439
Contents?: true
Size: 1.27 KB
Versions: 4
Compression:
Stored size: 1.27 KB
Contents
# NOTE: # Yes, you can deploy this project. It will deploy into the ./deploy/ # directory. The commands have been stubbed, so it's harmless. No rails or # bundler magic will happen. # ASSUMPTIONS: # - You have git installed. (of course you do) # - You have SSH enabled. In OS X, this is "Remote Login" under the Sharing pref pane. # - You have your own SSH key added to your own user so you can SSH to your own machine. # In fact, let's make that folder right now. require 'fileutils' FileUtils.mkdir_p "#{Dir.pwd}/deploy" # -- Stubs end, deploy script begins! -------------- require 'mina/rails' require 'mina/bundler' require 'mina/git' set :domain, 'localhost' set :deploy_to, "#{Dir.pwd}/deploy" set :repository, "#{Mina.root_path}" set :revision, 'HEAD' desc "Deploys." task :deploy do queue "bundle() { true; }" # Stub the bundle command. deploy do invoke :'git:clone' invoke :'bundle:install' invoke :'rails:db_migrate' to :launch do invoke :'passenger:restart' end end end desc "Restarts the passenger server." task :restart do invoke :'passenger:restart' end namespace :passenger do task :restart do queue %{ echo "-----> Restarting passenger" #{echo_cmd %[mkdir -p tmp]} #{echo_cmd %[touch tmp/restart.txt]} } end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mina-0.1.2.pre2 | test_env/config/deploy.rb |
mina-0.1.2.pre1 | test_env/config/deploy.rb |
mina-0.1.1 | test_env/config/deploy.rb |
mina-0.1.0 | test_env/config/deploy.rb |