RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

rake-deploy

rake-deploy Git-only, relase history, shared directory and with hooks deploy system.

Comments

Post was too long. Including trimmed:

  1. Install it via rubygems
    gem install rake-deploy
  2. Create a file called lib/tasks/deploy.rake with the following content:
    require 'rake/deploy'
    deploy.deploy_to   = "/tmp/app"
    deploy.repository  = "ssh://username@github.com/username/repo.git"
    deploy.host        = "production.my_app.com"
      
  3. Run rake deploy:setup
    $ rake deploy:setup

Now all the deploy is prepared. When you want to deploy just rake deploy

$ rake deploy

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in