Best time to upload shared files?

15 views
Skip to first unread message

Chiel Kunkels

unread,
Apr 20, 2015, 10:30:52 AM4/20/15
to capis...@googlegroups.com
Hello,

When I deploy I might want to change config files which depend on environment. What's the best point at which to do that? At the moment I just do it `before :deploy`, but I guess the best time to *actually* do it, is after the initial file structure has been created. Which hook would I be looking for then?

Cheers,
Chiel

Lee Hambley

unread,
Apr 20, 2015, 10:40:47 AM4/20/15
to Capistrano

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/037b177c-038e-4622-a835-434e7a342d3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Chiel Kunkels

unread,
Apr 20, 2015, 10:52:00 AM4/20/15
to capis...@googlegroups.com
Hmm, was looking a bit closer at the docs and noticed the section on Flow. I guess `before :'deploy:started'` would be my best bet. :)

Lee Hambley

unread,
Apr 20, 2015, 10:57:28 AM4/20/15
to Capistrano
It might well be, however after deploy:published it will be linked to "current", but services (depending on your gem integrations) probably won't be restarted yet. There's no right or wrong answer, as a rule we recommend "as early as possible".

--
You received this message because you are subscribed to the Google Groups "Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email to capistrano+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages