Roots Discourse

Should syncing uploads folder be done before cap staging deploy?

#1

I’m deploying from dev to staging using Capistrano + Composer: bundle exec cap staging deploy
From its log i see manipulations of uploads folder.
I sync uploads using Capistrano wp cli plugin: bundle exec cap staging wpcli:uploads:rsync:push --trace
Should the sync uploads precede deployment step?

0 Likes

#2

Syncing uploads shouldn’t be a part of any deployment step IMO - that should be a separate task entirely that you selectively run

0 Likes