How to deploy a specific revision with capistrano 3

Albert

How can I deploy a specific git revision with Capistrano 3?

The Capistrano 2.9 approach doesn't work anymore

$cap -S revision=80655da8d80aaaf92ce5357e7828dc09adb00993 deploy
invalid option: -S
Albert

The parameter seems to be gone in Capistrano 3. You have to set the env variable REVISION="revision" and include it in your deploy.rb

set :branch, ENV["REVISION"] || ENV["BRANCH_NAME"]

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Capistrano 3 does not restart after deploy

From Dev

capistrano v3 deploy git repository and its submodules

From Dev

Capistrano 3: How to store git revision into a file?

From Dev

How to halt a Capistrano deploy from within a task

From Dev

How to deploy rails sqlite3 database with capistrano

From Dev

rails 4.1 can't deploy via capistrano 3

From Dev

Update codebasehq.com on deploy with Capistrano 3

From Dev

How do you deploy to only one server with Capistrano v3?

From Dev

Capistrano 3 deploy:migrate not executing due to missing primary

From Dev

Running task before deploy:symlink:shared capistrano 3

From Dev

How set environment variable on capistrano deploy?

From Dev

How to execute bundle command from Capistrano deploy script

From Dev

capistrano 3 Don't know how to build task 'deploy:updated'

From Dev

How do I download a specific revision of llvm?

From Dev

Capistrano v3 - Hook to run command post deploy

From Dev

Setting :deploy_to from server config in Capistrano3

From Dev

Capistrano 3 + Sprockets 3 + Rails 4.2.1 won't deploy?

From Dev

How to define and run capistrano 3 task after deploy?

From Dev

Rails 4 + Capistrano 3 - Deploy to Production Server from Local Repo

From Dev

Rails: How to set up db:schema:load for initial deploy with Capistrano

From Dev

How to access environment variables during Capistrano deploy?

From Dev

Deploy once a specific branch with capistrano?

From Dev

capistrano v3 deploy git repository and its submodules

From Dev

Capistrano 3 deploy WordPress with GIT available in release dir

From Dev

How set environment variable on capistrano deploy?

From Dev

Capistrano v3 - Hook to run command post deploy

From Dev

capistrano3: Don't know how to build task 'deploy:create_db'

From Dev

Rails 4, Capistrano 3 and Dotenv - How to deploy using server-side .env file

From Dev

Capistrano 3: After deployment is not "refreshed" code (website stays as prior the deploy)

Related Related

  1. 1

    Capistrano 3 does not restart after deploy

  2. 2

    capistrano v3 deploy git repository and its submodules

  3. 3

    Capistrano 3: How to store git revision into a file?

  4. 4

    How to halt a Capistrano deploy from within a task

  5. 5

    How to deploy rails sqlite3 database with capistrano

  6. 6

    rails 4.1 can't deploy via capistrano 3

  7. 7

    Update codebasehq.com on deploy with Capistrano 3

  8. 8

    How do you deploy to only one server with Capistrano v3?

  9. 9

    Capistrano 3 deploy:migrate not executing due to missing primary

  10. 10

    Running task before deploy:symlink:shared capistrano 3

  11. 11

    How set environment variable on capistrano deploy?

  12. 12

    How to execute bundle command from Capistrano deploy script

  13. 13

    capistrano 3 Don't know how to build task 'deploy:updated'

  14. 14

    How do I download a specific revision of llvm?

  15. 15

    Capistrano v3 - Hook to run command post deploy

  16. 16

    Setting :deploy_to from server config in Capistrano3

  17. 17

    Capistrano 3 + Sprockets 3 + Rails 4.2.1 won't deploy?

  18. 18

    How to define and run capistrano 3 task after deploy?

  19. 19

    Rails 4 + Capistrano 3 - Deploy to Production Server from Local Repo

  20. 20

    Rails: How to set up db:schema:load for initial deploy with Capistrano

  21. 21

    How to access environment variables during Capistrano deploy?

  22. 22

    Deploy once a specific branch with capistrano?

  23. 23

    capistrano v3 deploy git repository and its submodules

  24. 24

    Capistrano 3 deploy WordPress with GIT available in release dir

  25. 25

    How set environment variable on capistrano deploy?

  26. 26

    Capistrano v3 - Hook to run command post deploy

  27. 27

    capistrano3: Don't know how to build task 'deploy:create_db'

  28. 28

    Rails 4, Capistrano 3 and Dotenv - How to deploy using server-side .env file

  29. 29

    Capistrano 3: After deployment is not "refreshed" code (website stays as prior the deploy)

HotTag

Archive