A
A
Anton Misyagin2015-08-24 14:50:05
Ruby on Rails
Anton Misyagin, 2015-08-24 14:50:05

How to change flow in capistrano 3?

The documentation says what is the sequence of tasks when starting cap production deploy.

deploy
  deploy:starting
    [before]
      deploy:ensure_stage
      deploy:set_shared_assets
    deploy:check
  deploy:started
  deploy:updating
    git:create_release
    deploy:symlink:shared
  deploy:updated
    [before]
      deploy:bundle
    [after]
      deploy:migrate
      deploy:compile_assets
      deploy:normalize_assets
  deploy:publishing
    deploy:symlink:release
  deploy:published
  deploy:finishing
    deploy:cleanup
  deploy:finished
    deploy:log_revision

How can I change this sequence in the settings? In particular, you need to remove compile_assets

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav German, 2015-11-13
@StGerman

Why remove compilation of assets during deployment?
1. Assets are not collected at all, for example, your application implements an API - you can disable the collection of assets globally

config.assets.enabled = false

2. Assembly of assets is needed, but it is necessary to implement it in a different way - you should create your own custom task for such an assembly and use it, for example, collecting assets using gulp or webpack

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question