Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6757675
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:40:57+00:00 2026-05-26T13:40:57+00:00

For example in: task :restart, :roles => :app, :except => { :no_release => true

  • 0

For example in:

 task :restart, :roles => :app, :except => { :no_release => true } do
 end
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:40:57+00:00Added an answer on May 26, 2026 at 1:40 pm

    Looking at the handbook, it appears that you can pass the :no_release attribute to the role definition (commonly done for the web role). This indicates that the code should not be checked out on servers in that role.

    So, I’m guessing that when a task specifies :except => { :no_release => true } – it’s saying “Skip this task on the servers (roles) that have :no_release defined as true.”

    role :app, "your app-server here"
    role :web, "your web-server here", :no_release => true
    role :db,  "your db-server here", :primary => true
    

    …

    desc "restart passenger"
    task :restart, :except => { :no_release => true } do
      run "touch #{current_path}/tmp/restart.txt"
    end
    

    In the above example, the restart operation should not run on the web server. Again, this is not tested… just going by my observations.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Google app engine task queues have configuration as (example) <queue> <name>mail-queue</name> <rate>5/m</rate> <bucket-size>10</bucket-size> </queue>
What is a quick example / demo of an msbuild task to delete then
For example, launch Paint.NET. Then have a look on its memory usage with Task
If a file system task such as a rename fails, for example if the
How do I kill the last spawned background task in Linux? Example: doSomething doAnotherThing
The task is to concat the binary of 2 given numbers. Example: Given 5
Mylyn is a task oriented plugin that allows for example to assign a set
I am trying to write a system restart Task for Windows Vista. I'm a
I am in dire need of a classification task example using LibSVM in python.
I have a rake task that I want to pass parameters to. For example,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.