Deploy hook not executed

My resque task needs to be able to write to tmp/uploads. I’ve added a deploy hook to create the directory and add permissions to the whole tmp folder.

      - command: 'cd $STACK_PATH && mkdir -p tmp/uploads && chmod 777 -R tmp/'

Yet this never get’s executed?

You should be able to use the following script:

    - command: cd $STACK_PATH && mkdir -p tmp/uploads && chmod 777 -R tmp/
      target: rails
      apply_during: all
      run_on: all_servers

You should see this being executed in your capistrano log on your server during deployment. Please let us know if you still have problems with this.

You must be logged in to answer this question